const Schema1 = Schema.Struct({
receiverId: Schema.Trim.pipe(
Schema.nonEmptyString({ message: () => 'Receiver Id required' }),
Schema.compose(
ReceiverSchema.annotations({
message: (f) => {
if (f._tag === 'Refinement') {
console.log(f.ast.annotations['Symbol(effect/annotation/Identifier)']);
return {
message: '444',
override: true,
};
} else {
return '';
}
},
}),
),
const Schema1 = Schema.Struct({
receiverId: Schema.Trim.pipe(
Schema.nonEmptyString({ message: () => 'Receiver Id required' }),
Schema.compose(
ReceiverSchema.annotations({
message: (f) => {
if (f._tag === 'Refinement') {
console.log(f.ast.annotations['Symbol(effect/annotation/Identifier)']);
return {
message: '444',
override: true,
};
} else {
return '';
}
},
}),
),