Class ObjectTypeInformation<T>

Type for defining an object with specific properties

Type Parameters

  • T extends {
        [key: string]: {
            required: boolean;
            type: AllowAnyTypeInformation;
        };
    }

    The object type

Hierarchy

Constructors

Properties

properties: T

Accessors

Methods

  • Create a type information for this object with all properties optional

    Returns ObjectTypeInformation<{
        [key in string | number | symbol]: {
            required: false;
            type: T[key]["type"];
        }
    }>

    A type information for this object with all properties optional

  • Create a type information for this object with all properties required

    Returns ObjectTypeInformation<{
        [key in string | number | symbol]: {
            required: true;
            type: T[key]["type"];
        }
    }>

    A type information for this object with all properties required

  • Returns {
        properties: {
            [k: string]: T;
        };
        type: string;
    }

    • properties: {
          [k: string]: T;
      }
      • [k: string]: T
    • type: string

Generated using TypeDoc