BooleanProvides the singleton Boolean AST instance.
When to use
Use to reuse the standard AST node that accepts either true or false when
constructing schema ASTs directly.
Source effect/SchemaAST.ts:14561 lines
export const const boolean: Booleanconst boolean: {
_tag: 'Boolean';
getParser: () => SchemaParser.Parser;
getExpected: () => string;
annotations: Schema.Annotations.Annotations | undefined;
checks: Checks | undefined;
encoding: Encoding | undefined;
context: Context | undefined;
toString: () => string;
}
Provides the singleton
Boolean
AST instance.
When to use
Use to reuse the standard AST node that accepts either true or false when
constructing schema ASTs directly.
boolean = new constructor Boolean(annotations?: Schema.Annotations.Annotations | undefined, checks?: Checks | undefined, encoding?: Encoding | undefined, context?: Context | undefined): BooleanAST node matching any boolean value (true or false).
Boolean()Referenced by 1 symbols