• Type Parameters

    • DESCRIPTION extends undefined | object

    Parameters

    • modIndex: number
    • id: EnumId
    • name: string
    • description: DESCRIPTION
    • Optional onAllocate: ((enumNumber: number, description: DESCRIPTION) => void)
        • (enumNumber: number, description: DESCRIPTION): void
        • Parameters

          • enumNumber: number
          • description: DESCRIPTION

          Returns void

    • Optional onUnallocate: ((enumNumber: number) => void)
        • (enumNumber: number): void
        • Parameters

          • enumNumber: number

          Returns void

    Returns default | undefined

  • Type Parameters

    • DESCRIPTION extends undefined | object

    Parameters

    • modIndex: number
    • id: EnumId
    • name: string
    • Optional description: DESCRIPTION
    • Optional onAllocate: ((enumNumber: number, description?: DESCRIPTION) => void)
        • (enumNumber: number, description?: DESCRIPTION): void
        • Parameters

          • enumNumber: number
          • Optional description: DESCRIPTION

          Returns void

    • Optional onUnallocate: ((enumNumber: number) => void)
        • (enumNumber: number): void
        • Parameters

          • enumNumber: number

          Returns void

    Returns default | undefined

Generated using TypeDoc