• Registers a skill.

    Parameters

    • name: string

      The name of the skill.

    • Optional description: ISkillDescription

      The definition of the skill.

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

    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, SkillType>

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc