• Registers a message.

    Parameters

    • name: string

      The name of the message.

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

      Note: The method does not support passing a translated English string. To translate your message, create a language file that extends English.

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

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc