string

View Source

Summary

Coerce input into a string.

Accepts:

  • string values as-is
  • primitive values that can be stringified (number, boolean, bigint, symbol)

Signature

function string(): Schema<unknown, string>;

Returns

A schema that produces a string