ObjectKeywordProvides the singleton ObjectKeyword AST instance.
When to use
Use to reuse the canonical AST node for the TypeScript object keyword when
building or comparing SchemaAST values directly.
Source effect/SchemaAST.ts:10091 lines
export const const objectKeyword: ObjectKeywordconst objectKeyword: {
_tag: 'ObjectKeyword';
getParser: () => SchemaParser.Parser;
getExpected: () => string;
annotations: Schema.Annotations.Annotations | undefined;
checks: Checks | undefined;
encoding: Encoding | undefined;
context: Context | undefined;
toString: () => string;
}
Provides the singleton
ObjectKeyword
AST instance.
When to use
Use to reuse the canonical AST node for the TypeScript object keyword when
building or comparing SchemaAST values directly.
objectKeyword = new constructor ObjectKeyword(annotations?: Schema.Annotations.Annotations | undefined, checks?: Checks | undefined, encoding?: Encoding | undefined, context?: Context | undefined): ObjectKeywordAST node matching the TypeScript object type — accepts objects, arrays,
and functions (anything non-primitive and non-null).
ObjectKeyword()Referenced by 1 symbols