• Registers a doodad.

    Parameters

    • name: string

      The name of the doodad.

    • Optional description: IDoodadDescription

      The definition of the doodad.

      The decorated property will be injected with the id of the registered doodad.

    Returns (<K, T>(target: T, key: K) => void)

      • <K, T>(target: T, key: K): void
      • Type Parameters

        • K extends string | number | symbol

        • T extends Record<K, DoodadType>

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc