Issue with Schema Transformation and Validation in TypeScript Code
hi, why this does not do validation and transformation?
export const JobRoleSlug = Schema.transform(Schema.NonEmptyString, Schema.NonEmptyString, {
strict: true,
decode: (value) => stringHelpers.dashCase(value.trim().toLowerCase()),
encode: (value) => value,
}).pipe(Schema.brand('job_role_slug'))
export type JobRoleSlug = Schema.Schema.Type<typeof JobRoleSlug>
const slug = JobRoleSlug.make('Abc dEf ') // this does not validate or transform