Interface DecoratedType

The DecoratedType interface represents how the attributes are inserted into the class.

interface DecoratedType {
    $meta?: {
        class: {
            [attributeName: string]: Attribute | Attribute[];
        };
        instance: {
            [property: PropertyKey]: {
                [attributeName: string]: Attribute | Attribute[];
            };
        };
        static: {
            [property: PropertyKey]: {
                [attributeName: string]: Attribute | Attribute[];
            };
        };
    };
}

Properties

Properties

$meta?: {
    class: {
        [attributeName: string]: Attribute | Attribute[];
    };
    instance: {
        [property: PropertyKey]: {
            [attributeName: string]: Attribute | Attribute[];
        };
    };
    static: {
        [property: PropertyKey]: {
            [attributeName: string]: Attribute | Attribute[];
        };
    };
}

The metadata for a class type.

Type declaration

  • class: {
        [attributeName: string]: Attribute | Attribute[];
    }

    The per-class attributes.

    • [attributeName: string]: Attribute | Attribute[]

      An object that contains the attributes indexed by the attribute name. If more than one instance of an attribute is present, they are stored as an array.

  • instance: {
        [property: PropertyKey]: {
            [attributeName: string]: Attribute | Attribute[];
        };
    }

    The non-static member attributes.

    • [property: PropertyKey]: {
          [attributeName: string]: Attribute | Attribute[];
      }

      An object that contains the attributes indexed by the member name.

      • [attributeName: string]: Attribute | Attribute[]

        An object that contains the attributes indexed by the attribute name. If more than one instance of an attribute is present, they are stored as an array.

  • static: {
        [property: PropertyKey]: {
            [attributeName: string]: Attribute | Attribute[];
        };
    }

    The static member attributes.

    • [property: PropertyKey]: {
          [attributeName: string]: Attribute | Attribute[];
      }

      An object that contains the attributes indexed by the member name.

      • [attributeName: string]: Attribute | Attribute[]

        An object that contains the attributes indexed by the attribute name. If more than one instance of an attribute is present, they are stored as an array.