This also trims the string. If you do not want this behavior, explicitly use untrimmedString
const schema = x.string Copy
const schema = x.string
x.string.parse(' hello ') // { success: true, value: 'hello' } Copy
x.string.parse(' hello ') // { success: true, value: 'hello' }
This also trims the string. If you do not want this behavior, explicitly use untrimmedString