Skip to content

frontmatter-schema-fixtures.ts#

View Markdown

Source

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()

View source

fnfailing(...issues: StandardSchemaV1.Issue[])Always fails with the given issues.

Always fails with the given issues.

Signature

failing(...issues: StandardSchemaV1.Issue[])

View source

Parameters

  • issues StandardSchemaV1.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()

View source

fnrecorder()Accepts everything and records what the validator was given.

Accepts everything and records what the validator was given.

Signature

export function recorder()

View source

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 })): StandardSchemaV1

View source

Parameters

  • validate Validate

    optional · default: (value) => ({ value })

Returns

StandardSchemaV1