const PhoneNumberSchema = Schema.compose(
Schema.TemplateLiteral(
Schema.String.pipe(Schema.length(3)),
'-',
Schema.String.pipe(Schema.length(3)),
'-',
Schema.String.pipe(Schema.length(4))
),
Schema.Trim.pipe(Schema.length(12))
).pipe(Schema.brand('phoneNumber'));
const PhoneNumberSchema = Schema.compose(
Schema.TemplateLiteral(
Schema.String.pipe(Schema.length(3)),
'-',
Schema.String.pipe(Schema.length(3)),
'-',
Schema.String.pipe(Schema.length(4))
),
Schema.Trim.pipe(Schema.length(12))
).pipe(Schema.brand('phoneNumber'));