Interface StringSchema<S>

a schema that validates any string

interface StringSchema<S> {
    metadata?: unknown;
    nullable?: boolean;
    type: S;
}

Type Parameters

Properties

metadata?: unknown

optional metadata on a schema

nullable?: boolean

a key indicating if a type can be null

type: S

the type