Hyperlinkv0.8.0-beta.28

SchemaAST

SchemaAST.Undefinedclasseffect/SchemaAST.ts:755
Undefined

AST node matching the undefined value.

Details

Parsing succeeds only when the input is exactly undefined.

modelsundefinedisUndefined
export class Undefined extends Base {
  readonly _tag = "Undefined"
  /** @internal */
  getParser() {
    return fromConst(this, undefined)
  }
  /** @internal */
  toCodecJson(): AST {
    return replaceEncoding(this, [undefinedToNull])
  }
  /** @internal */
  getExpected(): string {
    return "undefined"
  }
}
Referenced by 2 symbols