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

Type Parameters

  • T extends Record<string, string | number> = Record<string, string | number>

Hierarchy (view full)

Properties

$id?: string

Id for this schema

$schema?: string
[Hint]: "Enum"
[Kind]: "Union"
[OptionalKind]?: string
[ReadonlyKind]?: string
anyOf: TLiteral<T[keyof 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[keyof T]
title?: string

Title of this schema

writeOnly?: boolean

Optional annotation for writeOnly