Search


Search something to see results

string

string: Schema<string> = ...

This also trims the string. If you do not want this behavior, explicitly use untrimmedString

const schema = x.string
x.string.parse('  hello  ') // { success: true, value: 'hello' }