@discordx/internal
    Preparing search index...

    Class Decorator

    Represents a base decorator class.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _classRef: Record<string, any>
    _from: Record<string, any>
    _index?: number
    _key: string
    _method?: Record<string, any>

    Accessors

    • get index(): undefined | number

      Gets the index of the parameter being decorated, if applicable.

      Returns undefined | number

    • get method(): undefined | Record<string, any>

      Gets the method descriptor if the target is a method.

      Returns undefined | Record<string, any>

    Methods

    • Applies the decoration to the specified target.

      Parameters

      • classRef: Record<string, any>

        The class reference.

      • key: string

        The property key.

      • Optionalmethod: Record<string, any>

        The method descriptor.

      • Optionalfrom: Record<string, any>

        The originating class reference.

      • Optionalindex: number

        The parameter index.

      Returns this

      The current instance.

    • Decorates an unknown type (class, method, or property).

      Parameters

      • classRef: Record<string, any>

        The class reference.

      • Optionalkey: string

        The property key.

      • Optionalmethod: PropertyDescriptor

        The method descriptor.

      • Optionalindex: number

        The parameter index.

      Returns this

      The current instance.