Interface PropertiesSchema<P>

a schema for an object with only required properties

interface PropertiesSchema<P> {
    additionalProperties?: boolean;
    metadata?: unknown;
    nullable?: boolean;
    optionalProperties?: undefined;
    properties: P;
}

Type Parameters

Properties

additionalProperties?: boolean

if non-listed properties are allowed

metadata?: unknown

optional metadata on a schema

nullable?: boolean

a key indicating if a type can be null

optionalProperties?: undefined

properties defines no optional properties

properties: P

a schema for every required property