Schema.validate()method

validate(unsafeValue: unknown): T

Validate an unknown input value and return a known, valid value of type T.