- allocate<DESCRIPTION>(modIndex: number, id: EnumId, name: string, description: DESCRIPTION, onAllocate?: ((enumNumber: number, description: DESCRIPTION) => void), onUnallocate?: ((enumNumber: number) => void)): default | undefined
-
Type Parameters
-
DESCRIPTION extends undefined | object
Parameters
-
modIndex: number
-
-
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
-
Returns void
Returns default | undefined
- allocate<DESCRIPTION>(modIndex: number, id: EnumId, name: string, description?: DESCRIPTION, onAllocate?: ((enumNumber: number, description?: DESCRIPTION) => void), onUnallocate?: ((enumNumber: number) => void)): default | undefined
-
Type Parameters
-
DESCRIPTION extends undefined | object
Parameters
-
modIndex: number
-
-
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
-
Returns void
Returns default | undefined