Interface TLiteral<T>

interface TLiteral<T> {
    [Hint]?: string;
    [Kind]: "Literal";
    [OptionalKind]?: string;
    [ReadonlyKind]?: string;
    $id?: string;
    $schema?: string;
    const: T;
    default?: any;
    description?: string;
    examples?: any;
    params: unknown[];
    readOnly?: boolean;
    static: T;
    title?: string;
    writeOnly?: boolean;
}

Type Parameters

Hierarchy (view full)

Properties

[Hint]?: string
[Kind]: "Literal"
[OptionalKind]?: string
[ReadonlyKind]?: string
$id?: string

Id for this schema

$schema?: string
const: T
default?: any

Default value for this schema

description?: string

Description of this schema

examples?: any

Example values matching this schema

params: unknown[]
readOnly?: boolean

Optional annotation for readOnly

static: T
title?: string

Title of this schema

writeOnly?: boolean

Optional annotation for writeOnly