ObjectPropertyMetadata: BasePropertyMetadata & {
    allowAdditionalProperties: boolean;
    cls: () => Newable<unknown>;
    type: "object";
}

Metadata for object properties.

Type declaration

  • allowAdditionalProperties: boolean

    Whether or not the object should allow additional keys.

    false
    
  • cls: () => Newable<unknown>

    The class that defines the structure of the object.

  • type: "object"

    The type of the property.