Interface TObject<T>

interface TObject<T> {
    [Hint]?: string;
    [Kind]: "Object";
    [OptionalKind]?: string;
    [ReadonlyKind]?: string;
    $id?: string;
    $schema?: string;
    additionalProperties?: TAdditionalProperties;
    default?: any;
    description?: string;
    examples?: any;
    maxProperties?: number;
    minProperties?: number;
    params: unknown[];
    properties: T;
    readOnly?: boolean;
    required?: string[];
    static: Evaluate<Readonly<Partial<Pick<{
        [K in string | number | symbol]: Static<T[K], unknown[]>
    }, ReadonlyOptionalPropertyKeys<T>>>> & Readonly<Pick<{
        [K in string | number | symbol]: Static<T[K], unknown[]>
    }, ReadonlyPropertyKeys<T>>> & Partial<Pick<{
        [K in string | number | symbol]: Static<T[K], unknown[]>
    }, OptionalPropertyKeys<T>>> & Required<Pick<{
        [K in string | number | symbol]: Static<T[K], unknown[]>
    }, Exclude<keyof T, ReadonlyOptionalPropertyKeys<T> | ReadonlyPropertyKeys<T> | OptionalPropertyKeys<T>>>>>;
    title?: string;
    type: "object";
    writeOnly?: boolean;
}

Type Parameters

Hierarchy (view full)

Properties

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

Id for this schema

$schema?: string
additionalProperties?: TAdditionalProperties

Additional property constraints for this object

default?: any

Default value for this schema

description?: string

Description of this schema

examples?: any

Example values matching this schema

maxProperties?: number

The maximum number of properties allowed on this object

minProperties?: number

The minimum number of properties allowed on this object

params: unknown[]
properties: T
readOnly?: boolean

Optional annotation for readOnly

required?: string[]
static: Evaluate<Readonly<Partial<Pick<{
    [K in string | number | symbol]: Static<T[K], unknown[]>
}, ReadonlyOptionalPropertyKeys<T>>>> & Readonly<Pick<{
    [K in string | number | symbol]: Static<T[K], unknown[]>
}, ReadonlyPropertyKeys<T>>> & Partial<Pick<{
    [K in string | number | symbol]: Static<T[K], unknown[]>
}, OptionalPropertyKeys<T>>> & Required<Pick<{
    [K in string | number | symbol]: Static<T[K], unknown[]>
}, Exclude<keyof T, ReadonlyOptionalPropertyKeys<T> | ReadonlyPropertyKeys<T> | OptionalPropertyKeys<T>>>>>
title?: string

Title of this schema

type: "object"
writeOnly?: boolean

Optional annotation for writeOnly