frontmatter-schema-fixtures.ts#
5 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.
5
symbols
5
functions
2
parameters
1
returns
Reference#
fnconvertible()A Standard JSON Schema that records which converter was asked for which target.
A Standard JSON Schema that records which converter was asked for which target.
Signature
export function convertible()fnfailing(...issues: StandardSchemaV1.Issue[])Always fails with the given issues.
Always fails with the given issues.
Signature
failing(...issues: StandardSchemaV1.Issue[])Parameters
-
issuesStandardSchemaV1.Issue[]
fnhybrid()A validator that happens to expose its own schema and jsonSchema properties.
A validator that happens to expose its own schema and jsonSchema properties.
Signature
export function hybrid()fnrecorder()Accepts everything and records what the validator was given.
Accepts everything and records what the validator was given.
Signature
export function recorder()fnschema(validate: Validate = (value) => ({ value })): StandardSchemaV1A minimal Standard Schema; accepts every value unless told otherwise.
A minimal Standard Schema; accepts every value unless told otherwise.
Signature
schema(validate: Validate = (value) => ({ value })): StandardSchemaV1Parameters
-
validateValidateoptional · default: (value) => ({ value })
Returns
StandardSchemaV1