StringProvides the singleton String AST instance.
When to use
Use as the shared SchemaAST node for unconstrained JavaScript strings.
Source effect/SchemaAST.ts:13331 lines
export const const string: Stringconst string: {
_tag: 'String';
getParser: () => SchemaParser.Parser;
matchPart: (s: string, options: ParseOptions) => string | undefined;
getExpected: () => string;
annotations: Schema.Annotations.Annotations | undefined;
checks: Checks | undefined;
encoding: Encoding | undefined;
context: Context | undefined;
toString: () => string;
}
Provides the singleton
String
AST instance.
When to use
Use as the shared SchemaAST node for unconstrained JavaScript strings.
string = new constructor String(annotations?: Schema.Annotations.Annotations | undefined, checks?: Checks | undefined, encoding?: Encoding | undefined, context?: Context | undefined): StringAST node matching any string value.
String()Referenced by 2 symbols