Skip to content

unknown

DDataParser.unknown() lets any value through but keeps the error and checker mechanics. Ideal as a permissive entry point before chaining a pipe or adding your checkerRefine.

Interactive example

Parameters

  • errorMessage: custom message in case of manual rejection.
  • checkers: checkerRefine to tighten validation.

Return value

A DataParserUnknown. schema.parse(data) returns DEither.success<unknown> or DEither.error<DataParserError>.

See also

  • date - Parser for dates
  • coerce.* - Coercion functions for various types

Released under the MIT license.