PickupIndex
Type Aliases
Section titled “Type Aliases”PickupIndex
Section titled “PickupIndex”PickupIndex =
int&object
Defined in: packages/isaacscript-common/src/types/PickupIndex.ts:15
PickupIndex is a specific type of number that represents a unique identifier for a pickup. Mods
can signify that data structures handle collectibles by using this type.
For more information, see the documentation for the getPickupIndex function.
For example:
const pickupNameMap = new Map<PickupIndex, string>();This type is branded for extra type safety.
Type Declaration
Section titled “Type Declaration”__pickupIndexBrand
Section titled “__pickupIndexBrand”
readonly__pickupIndexBrand:symbol
