Hyperlinkv0.8.0-beta.28

SchemaAST

SchemaAST.Neverclasseffect/SchemaAST.ts:869
Never

AST node representing the never type — no value matches.

Details

Parsing always fails. Useful as a placeholder in unions or as the result of narrowing that eliminates all options.

export class Never extends Base {
  readonly _tag = "Never"
  /** @internal */
  getParser() {
    return fromRefinement(this, Predicate.isNever)
  }
  /** @internal */
  getExpected(): string {
    return "never"
  }
}
Referenced by 3 symbols