• Applies decorators to a class or class member, following the native ECMAScript decorator specification.

    Parameters

    • ctor: Function

      For non-field class members, the class constructor. Otherwise, null.

    • descriptorIn: object

      The PropertyDescriptor to use when unable to look up the property from ctor.

    • decorators: Function[]

      The decorators to apply

    • contextIn: object

      The DecoratorContext to clone for each decorator application.

    • initializers: Function[]

      An array of field initializer mutation functions into which new initializers are written.

    • extraInitializers: Function[]

      An array of extra initializer functions into which new initializers are written.

    Returns void

Generated using TypeDoc