• Registers a tile event.

    Parameters

    • name: string

      The name of the tile event.

    • Optional description: ITileEventDescription

      The definition of the tile event.

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

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

        Parameters

        • target: T
        • key: K

        Returns void

Generated using TypeDoc