isaacscript-common 2.3.1 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cachedClasses.d.ts +6 -4
- package/cachedClasses.lua +24 -0
- package/callbacks/customRevive.lua +2 -0
- package/callbacks/itemPickup.lua +2 -0
- package/callbacks/postBombInitLate.lua +2 -0
- package/callbacks/postBoneSwing.lua +2 -0
- package/callbacks/postCollectibleInitFirst.lua +2 -0
- package/callbacks/postCursedTeleport.lua +2 -0
- package/callbacks/postCustomDoorEnter.lua +44 -0
- package/callbacks/postDoorRender.lua +2 -0
- package/callbacks/postDoorUpdate.lua +2 -0
- package/callbacks/postEffectInitLate.lua +2 -0
- package/callbacks/postEffectStateChanged.lua +2 -0
- package/callbacks/postEsauJr.lua +2 -0
- package/callbacks/postFamiliarInitLate.lua +2 -0
- package/callbacks/postFamiliarStateChanged.lua +2 -0
- package/callbacks/postFlip.lua +2 -0
- package/callbacks/postGreedModeWave.lua +2 -0
- package/callbacks/postGridEntity.lua +2 -0
- package/callbacks/postGridEntityCollision.lua +2 -0
- package/callbacks/postGridEntityRender.lua +2 -0
- package/callbacks/postHolyMantleRemoved.lua +2 -0
- package/callbacks/postKnifeInitLate.lua +2 -0
- package/callbacks/postLaserInitLate.lua +2 -0
- package/callbacks/postNPCInitLate.lua +2 -0
- package/callbacks/postNPCStateChanged.lua +2 -0
- package/callbacks/postNewRoomEarly.lua +2 -0
- package/callbacks/postPickupCollect.lua +2 -0
- package/callbacks/postPickupInitLate.lua +2 -0
- package/callbacks/postPickupStateChanged.lua +2 -0
- package/callbacks/postPitRender.lua +2 -0
- package/callbacks/postPitUpdate.lua +2 -0
- package/callbacks/postPlayerChangeHealth.lua +2 -0
- package/callbacks/postPlayerChangeType.lua +2 -0
- package/callbacks/postPlayerFatalDamage.lua +2 -0
- package/callbacks/postPlayerInitLate.lua +2 -0
- package/callbacks/postPlayerReordered.lua +2 -0
- package/callbacks/postPoopRender.lua +2 -0
- package/callbacks/postPoopUpdate.lua +2 -0
- package/callbacks/postPressurePlateRender.lua +2 -0
- package/callbacks/postPressurePlateUpdate.lua +2 -0
- package/callbacks/postProjectileInitLate.lua +2 -0
- package/callbacks/postPurchase.lua +2 -0
- package/callbacks/postRockRender.lua +2 -0
- package/callbacks/postRockUpdate.lua +2 -0
- package/callbacks/postRoomClearChanged.lua +2 -0
- package/callbacks/postSacrifice.lua +2 -0
- package/callbacks/postSlotDestroyed.d.ts +1 -0
- package/callbacks/postSlotDestroyed.lua +66 -0
- package/callbacks/postSlotInitUpdate.lua +2 -0
- package/callbacks/postSlotRender.lua +5 -21
- package/callbacks/postSpikesRender.lua +2 -0
- package/callbacks/postSpikesUpdate.lua +2 -0
- package/callbacks/postTNTRender.lua +2 -0
- package/callbacks/postTNTUpdate.lua +2 -0
- package/callbacks/postTearInitLate.lua +2 -0
- package/callbacks/postTearInitVeryLate.lua +2 -0
- package/callbacks/postTransformation.lua +2 -0
- package/callbacks/postTrinketBreak.lua +2 -0
- package/callbacks/preBerserkDeath.lua +2 -0
- package/callbacks/preNewLevel.lua +2 -0
- package/callbacks/reorderedCallbacks.lua +16 -0
- package/callbacks/subscriptions/postBombInitLate.lua +6 -0
- package/callbacks/subscriptions/postBoneSwing.lua +6 -0
- package/callbacks/subscriptions/postCollectibleInitFirst.lua +6 -0
- package/callbacks/subscriptions/postCursedTeleport.lua +6 -0
- package/callbacks/subscriptions/postCustomDoorEnter.lua +6 -0
- package/callbacks/subscriptions/postCustomRevive.d.ts +1 -0
- package/callbacks/subscriptions/postCustomRevive.lua +6 -0
- package/callbacks/subscriptions/postDoorRender.d.ts +1 -0
- package/callbacks/subscriptions/postDoorRender.lua +6 -0
- package/callbacks/subscriptions/postDoorUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postDoorUpdate.lua +6 -0
- package/callbacks/subscriptions/postEffectInitLate.lua +6 -0
- package/callbacks/subscriptions/postEffectStateChanged.lua +6 -0
- package/callbacks/subscriptions/postEsauJr.lua +6 -0
- package/callbacks/subscriptions/postFamiliarInitLate.lua +6 -0
- package/callbacks/subscriptions/postFamiliarStateChanged.lua +6 -0
- package/callbacks/subscriptions/postFirstEsauJr.lua +6 -0
- package/callbacks/subscriptions/postFirstFlip.lua +6 -0
- package/callbacks/subscriptions/postFlip.lua +6 -0
- package/callbacks/subscriptions/postGameStartedReordered.lua +6 -0
- package/callbacks/subscriptions/postGreedModeWave.lua +6 -0
- package/callbacks/subscriptions/postGridEntityBroken.lua +6 -0
- package/callbacks/subscriptions/postGridEntityCollision.lua +6 -0
- package/callbacks/subscriptions/postGridEntityInit.lua +6 -0
- package/callbacks/subscriptions/postGridEntityRemove.lua +6 -0
- package/callbacks/subscriptions/postGridEntityRender.lua +6 -0
- package/callbacks/subscriptions/postGridEntityStateChanged.lua +6 -0
- package/callbacks/subscriptions/postGridEntityUpdate.lua +6 -0
- package/callbacks/subscriptions/postHolyMantleRemoved.lua +6 -0
- package/callbacks/subscriptions/postItemDischarged.lua +6 -0
- package/callbacks/subscriptions/postItemPickup.lua +6 -0
- package/callbacks/subscriptions/postKnifeInitLate.lua +6 -0
- package/callbacks/subscriptions/postLaserInitLate.lua +6 -0
- package/callbacks/subscriptions/postNPCInitLate.lua +6 -0
- package/callbacks/subscriptions/postNPCStateChanged.lua +6 -0
- package/callbacks/subscriptions/postNewLevelReordered.lua +6 -0
- package/callbacks/subscriptions/postNewRoomEarly.lua +6 -0
- package/callbacks/subscriptions/postNewRoomReordered.lua +6 -0
- package/callbacks/subscriptions/postPEffectUpdateReordered.lua +6 -0
- package/callbacks/subscriptions/postPickupCollect.d.ts +1 -0
- package/callbacks/subscriptions/postPickupCollect.lua +6 -0
- package/callbacks/subscriptions/postPickupInitLate.lua +6 -0
- package/callbacks/subscriptions/postPickupStateChanged.d.ts +1 -0
- package/callbacks/subscriptions/postPickupStateChanged.lua +6 -0
- package/callbacks/subscriptions/postPitRender.d.ts +1 -0
- package/callbacks/subscriptions/postPitRender.lua +6 -0
- package/callbacks/subscriptions/postPitUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPitUpdate.lua +6 -0
- package/callbacks/subscriptions/postPlayerChangeHealth.lua +6 -0
- package/callbacks/subscriptions/postPlayerChangeType.lua +6 -0
- package/callbacks/subscriptions/postPlayerFatalDamage.lua +6 -0
- package/callbacks/subscriptions/postPlayerInitLate.lua +6 -0
- package/callbacks/subscriptions/postPlayerInitReordered.lua +6 -0
- package/callbacks/subscriptions/postPlayerRenderReordered.lua +6 -0
- package/callbacks/subscriptions/postPlayerUpdateReordered.lua +6 -0
- package/callbacks/subscriptions/postPoopRender.d.ts +1 -0
- package/callbacks/subscriptions/postPoopRender.lua +6 -0
- package/callbacks/subscriptions/postPoopUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPoopUpdate.lua +6 -0
- package/callbacks/subscriptions/postPressurePlateRender.d.ts +1 -0
- package/callbacks/subscriptions/postPressurePlateRender.lua +6 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postPressurePlateUpdate.lua +6 -0
- package/callbacks/subscriptions/postProjectileInitLate.lua +6 -0
- package/callbacks/subscriptions/postPurchase.lua +6 -0
- package/callbacks/subscriptions/postRockRender.d.ts +1 -0
- package/callbacks/subscriptions/postRockRender.lua +6 -0
- package/callbacks/subscriptions/postRockUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postRockUpdate.lua +6 -0
- package/callbacks/subscriptions/postRoomClearChanged.lua +6 -0
- package/callbacks/subscriptions/postSacrifice.lua +6 -0
- package/callbacks/subscriptions/postSlotAnimationChanged.lua +6 -0
- package/callbacks/subscriptions/postSlotDestroyed.lua +6 -0
- package/callbacks/subscriptions/postSlotInit.lua +6 -0
- package/callbacks/subscriptions/postSlotRender.lua +6 -0
- package/callbacks/subscriptions/postSlotUpdate.lua +6 -0
- package/callbacks/subscriptions/postSpikesRender.d.ts +1 -0
- package/callbacks/subscriptions/postSpikesRender.lua +6 -0
- package/callbacks/subscriptions/postSpikesUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postSpikesUpdate.lua +6 -0
- package/callbacks/subscriptions/postTNTRender.d.ts +1 -0
- package/callbacks/subscriptions/postTNTRender.lua +6 -0
- package/callbacks/subscriptions/postTNTUpdate.d.ts +1 -0
- package/callbacks/subscriptions/postTNTUpdate.lua +6 -0
- package/callbacks/subscriptions/postTearInitLate.lua +6 -0
- package/callbacks/subscriptions/postTearInitVeryLate.lua +6 -0
- package/callbacks/subscriptions/postTransformation.lua +6 -0
- package/callbacks/subscriptions/postTrinketBreak.lua +6 -0
- package/callbacks/subscriptions/preBerserkDeath.lua +6 -0
- package/callbacks/subscriptions/preCustomRevive.lua +6 -0
- package/callbacks/subscriptions/preItemPickup.lua +6 -0
- package/callbacks/subscriptions/preNewLevel.lua +6 -0
- package/classes/DefaultMap.d.ts +70 -39
- package/classes/DefaultMap.lua +94 -43
- package/classes/ModUpgraded.d.ts +3 -3
- package/classes/ModUpgraded.lua +5 -0
- package/constants.lua +41 -0
- package/constantsFirstLast.lua +63 -0
- package/enums/HealthType.lua +3 -0
- package/enums/ModCallbackCustom.d.ts +1 -1
- package/enums/ModCallbackCustom.lua +6 -0
- package/enums/private/CopyableIsaacAPIClassType.lua +1 -0
- package/enums/private/SerializationBrand.lua +5 -0
- package/features/characterHealthConversion.lua +6 -0
- package/features/characterStats.lua +17 -0
- package/features/debugDisplay/exports.d.ts +17 -0
- package/features/debugDisplay/exports.lua +90 -0
- package/features/debugDisplay/v.d.ts +17 -0
- package/features/deployJSONRoom.d.ts +1 -0
- package/features/deployJSONRoom.lua +56 -0
- package/features/disableInputs.lua +45 -0
- package/features/disableSound.lua +14 -0
- package/features/extraConsoleCommands/commandsDisplay.lua +90 -0
- package/features/extraConsoleCommands/init.lua +16 -0
- package/features/extraConsoleCommands/listCommands.lua +172 -0
- package/features/fadeInRemover.lua +10 -0
- package/features/fastReset.lua +10 -0
- package/features/forgottenSwitch.lua +4 -0
- package/features/getCollectibleItemPoolType.lua +5 -0
- package/features/playerInventory.lua +18 -0
- package/features/ponyDetection.lua +4 -0
- package/features/preventCollectibleRotation.lua +9 -0
- package/features/runInNFrames.lua +50 -0
- package/features/saveDataManager/constants.lua +1 -0
- package/features/saveDataManager/exports.lua +115 -0
- package/features/saveDataManager/load.lua +12 -8
- package/features/saveDataManager/main.lua +16 -3
- package/features/saveDataManager/maps.lua +3 -0
- package/features/saveDataManager/merge.lua +53 -21
- package/features/saveDataManager/save.lua +12 -7
- package/features/sirenHelpers.lua +13 -0
- package/features/taintedLazarusPlayers.lua +11 -0
- package/featuresInitialized.lua +6 -0
- package/functions/array.d.ts +2 -0
- package/functions/array.lua +85 -0
- package/functions/benchmark.lua +6 -0
- package/functions/boss.lua +35 -0
- package/functions/cacheFlag.lua +4 -0
- package/functions/cards.lua +60 -0
- package/functions/challenges.lua +1 -0
- package/functions/character.lua +23 -0
- package/functions/charge.lua +39 -0
- package/functions/chargeBar.d.ts +1 -0
- package/functions/chargeBar.lua +4 -0
- package/functions/collectibleCacheFlag.lua +15 -0
- package/functions/collectibleSet.lua +3 -0
- package/functions/collectibleTag.lua +9 -0
- package/functions/collectibles.d.ts +6 -1
- package/functions/collectibles.lua +146 -2
- package/functions/color.lua +18 -0
- package/functions/debug.lua +18 -0
- package/functions/deepCopy.lua +60 -26
- package/functions/deepCopyTests.lua +8 -5
- package/functions/direction.d.ts +1 -0
- package/functions/direction.lua +22 -0
- package/functions/doors.d.ts +1 -0
- package/functions/doors.lua +58 -0
- package/functions/entity.d.ts +4 -4
- package/functions/entity.lua +94 -6
- package/functions/entitySpecific.d.ts +20 -20
- package/functions/entitySpecific.lua +182 -0
- package/functions/entityTypes.d.ts +1 -1
- package/functions/entityTypes.lua +1 -0
- package/functions/enums.d.ts +2 -0
- package/functions/enums.lua +62 -0
- package/functions/familiars.lua +52 -0
- package/functions/flag.lua +77 -0
- package/functions/flying.lua +10 -0
- package/functions/globals.lua +8 -10
- package/functions/gridEntity.lua +105 -0
- package/functions/gridEntitySpecific.d.ts +5 -0
- package/functions/gridEntitySpecific.lua +8 -0
- package/functions/input.lua +11 -0
- package/functions/isaacAPIClass.d.ts +4 -4
- package/functions/isaacAPIClass.lua +15 -3
- package/functions/jsonHelpers.lua +11 -0
- package/functions/jsonRoom.d.ts +2 -0
- package/functions/jsonRoom.lua +5 -0
- package/functions/kColor.lua +9 -0
- package/functions/language.lua +5 -0
- package/functions/log.lua +31 -3
- package/functions/map.lua +18 -0
- package/functions/math.lua +26 -0
- package/functions/npc.lua +24 -0
- package/functions/pickupVariants.d.ts +11 -11
- package/functions/pickupVariants.lua +11 -0
- package/functions/pickups.d.ts +9 -9
- package/functions/pickups.lua +67 -0
- package/functions/pills.lua +45 -0
- package/functions/player.lua +166 -0
- package/functions/playerDataStructures.lua +65 -0
- package/functions/playerHealth.d.ts +1 -0
- package/functions/playerHealth.lua +10 -0
- package/functions/playerIndex.d.ts +2 -0
- package/functions/playerIndex.lua +47 -0
- package/functions/pocketItems.lua +18 -0
- package/functions/positionVelocity.d.ts +3 -0
- package/functions/positionVelocity.lua +46 -0
- package/functions/random.d.ts +2 -0
- package/functions/random.lua +32 -0
- package/functions/revive.d.ts +2 -0
- package/functions/revive.lua +15 -0
- package/functions/rng.d.ts +1 -0
- package/functions/rng.lua +19 -0
- package/functions/roomData.lua +68 -0
- package/functions/roomGrid.lua +21 -0
- package/functions/roomShape.lua +22 -0
- package/functions/rooms.lua +100 -0
- package/functions/run.lua +5 -0
- package/functions/seeds.lua +4 -0
- package/functions/serialization.lua +6 -2
- package/functions/set.d.ts +1 -0
- package/functions/set.lua +22 -0
- package/functions/spawnCollectible.lua +24 -0
- package/functions/sprite.d.ts +2 -0
- package/functions/sprite.lua +25 -0
- package/functions/stage.lua +16 -0
- package/functions/string.lua +6 -0
- package/functions/table.d.ts +12 -0
- package/functions/table.lua +53 -0
- package/functions/tears.d.ts +1 -0
- package/functions/tears.lua +12 -0
- package/functions/transformations.lua +18 -0
- package/functions/trinketCacheFlag.lua +3 -0
- package/functions/trinketGive.lua +24 -0
- package/functions/trinkets.lua +52 -0
- package/functions/tstlClass.d.ts +34 -0
- package/functions/tstlClass.lua +63 -9
- package/functions/ui.d.ts +2 -0
- package/functions/ui.lua +16 -0
- package/functions/utils.d.ts +16 -0
- package/functions/utils.lua +108 -0
- package/functions/vector.lua +13 -16
- package/index.d.ts +1 -0
- package/initCustomCallbacks.lua +3 -0
- package/interfaces/ChargeBarSprites.d.ts +1 -0
- package/interfaces/private/TSTLClassMetatable.d.ts +2 -0
- package/lualib_bundle.lua +21 -34
- package/maps/cardMap.lua +1 -0
- package/maps/characterMap.lua +1 -0
- package/maps/defaultPlayerStatMap.lua +1 -0
- package/maps/gridEntityXMLMap.lua +2 -0
- package/maps/pillEffectMap.lua +1 -0
- package/maps/roomShapeToTopLeftWallGridIndexMap.lua +2 -0
- package/maps/roomTypeMap.lua +1 -0
- package/objects/LRoomShapeToRectangles.lua +2 -0
- package/objects/colors.lua +4 -0
- package/objects/oppositeDoorSlots.d.ts +4 -0
- package/objects/oppositeDoorSlots.lua +15 -0
- package/objects/roomShapeBounds.lua +2 -0
- package/objects/roomShapeLayoutSizes.lua +4 -0
- package/objects/roomShapeToBottomRightPosition.lua +2 -0
- package/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +2 -0
- package/objects/roomShapeToTopLeftPosition.lua +2 -0
- package/objects/roomShapeVolumes.lua +3 -0
- package/package.json +2 -2
- package/patchErrorFunctions.lua +8 -0
- package/sets/bossSets.lua +23 -0
- package/sets/charactersWithNoRedHeartsSet.lua +2 -0
- package/sets/charactersWithNoSoulHeartsSet.lua +2 -0
- package/sets/lostStyleCharactersSet.lua +2 -0
- package/types/AnyEntity.d.ts +10 -0
- package/types/PickingUpItem.lua +7 -0
- package/upgradeMod.d.ts +4 -4
- package/upgradeMod.lua +18 -0
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postPurchaseHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postPurchaseRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postPurchaseFire(self, player, pickup)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postRockRenderHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postRockRenderRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postRockRenderFire(self, rock)
|
|
11
17
|
local gridEntityVariant = rock:GetVariant()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postRockUpdateHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postRockUpdateRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postRockUpdateFire(self, rock)
|
|
11
17
|
local gridEntityVariant = rock:GetVariant()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postRoomClearChangedHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postRoomClearChangedRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postRoomClearChangedFire(self, roomClear)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postSacrificeHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postSacrificeRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postSacrificeFire(self, player, numSacrifices)
|
|
11
17
|
local character = player:GetPlayerType()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postSlotAnimationChangedHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postSlotAnimationChangedRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postSlotAnimationChangedFire(self, slot, previousAnimation, currentAnimation)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postSlotDestroyedHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postSlotDestroyedRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postSlotDestroyedFire(self, slot)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postSlotInitHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postSlotInitRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postSlotInitFire(self, slot)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postSlotRenderHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postSlotRenderRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postSlotRenderFire(self, slot)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postSlotUpdateHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postSlotUpdateRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postSlotUpdateFire(self, slot)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postSpikesRenderHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postSpikesRenderRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postSpikesRenderFire(self, spikes)
|
|
11
17
|
local gridEntityVariant = spikes:GetVariant()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postSpikesUpdateHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postSpikesUpdateRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postSpikesUpdateFire(self, spikes)
|
|
11
17
|
local gridEntityVariant = spikes:GetVariant()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postTNTRenderHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postTNTRenderRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postTNTRenderFire(self, tnt)
|
|
11
17
|
local gridEntityVariant = tnt:GetVariant()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postTNTUpdateHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postTNTUpdateRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postTNTUpdateFire(self, tnt)
|
|
11
17
|
local gridEntityVariant = tnt:GetVariant()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postTearInitLateHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postTearInitLateRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postTearInitLateFire(self, tear)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postTearInitVeryLateHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postTearInitVeryLateRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postTearInitVeryLateFire(self, tear)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postTransformationHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postTransformationRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postTransformationFire(self, player, playerForm, hasForm)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.postTrinketBreakHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.postTrinketBreakRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.postTrinketBreakFire(self, player, trinketType)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.preBerserkDeathHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.preBerserkDeathRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.preBerserkDeathFire(self, player)
|
|
11
17
|
local character = player:GetPlayerType()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.preCustomReviveHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.preCustomReviveRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.preCustomReviveFire(self, player)
|
|
11
17
|
local character = player:GetPlayerType()
|
|
12
18
|
for ____, ____value in ipairs(subscriptions) do
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.preItemPickupHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.preItemPickupRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.preItemPickupFire(self, player, pickingUpItem)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
local ____exports = {}
|
|
2
2
|
local subscriptions = {}
|
|
3
|
+
---
|
|
4
|
+
-- @internal
|
|
3
5
|
function ____exports.preNewLevelHasSubscriptions(self)
|
|
4
6
|
return #subscriptions > 0
|
|
5
7
|
end
|
|
8
|
+
---
|
|
9
|
+
-- @internal
|
|
6
10
|
function ____exports.preNewLevelRegister(self, ...)
|
|
7
11
|
local args = {...}
|
|
8
12
|
subscriptions[#subscriptions + 1] = args
|
|
9
13
|
end
|
|
14
|
+
---
|
|
15
|
+
-- @internal
|
|
10
16
|
function ____exports.preNewLevelFire(self, player)
|
|
11
17
|
for ____, ____value in ipairs(subscriptions) do
|
|
12
18
|
local callback = ____value[1]
|
package/classes/DefaultMap.d.ts
CHANGED
|
@@ -1,79 +1,110 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A function that creates the value for your
|
|
3
|
-
* containing maps, the factory function would be: `() => new Map()`
|
|
2
|
+
* A function that creates the default value for your `DefaultMap`. For example, if it was a
|
|
3
|
+
* `DefaultMap` containing maps, the factory function would be: `() => new Map()`
|
|
4
4
|
*/
|
|
5
5
|
export declare type FactoryFunction<V, Args extends unknown[]> = (...extraArgs: Args) => V;
|
|
6
|
-
declare type FirstArg<K, V, Args extends unknown[]> = Iterable<[K, V]> | V | FactoryFunction<V, Args>;
|
|
7
|
-
declare type SecondArg<V, Args extends unknown[]> = V | FactoryFunction<V, Args>;
|
|
8
6
|
/**
|
|
9
|
-
*
|
|
7
|
+
* `DefaultMap` is a data structure that makes working with default values easier.
|
|
10
8
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* was provided during instantiation, this will execute the factory function.)
|
|
15
|
-
* - `getConstructorArg` - Helper method for cloning the map. Returns either the default value or
|
|
16
|
-
* the reference to the factory function.
|
|
9
|
+
* It is a common pattern to look up a value in a `Map`, and then, if the value does not exist, set
|
|
10
|
+
* a default value for the key, and then return the default value. `DefaultMap` abstracts this
|
|
11
|
+
* operation away by providing the `getAndSetDefault` method.
|
|
17
12
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
13
|
+
* Using a `DefaultMap` is nice because it makes code more declarative, since you specify what the
|
|
14
|
+
* default value is alongside the types of the keys/values.
|
|
20
15
|
*
|
|
21
|
-
*
|
|
16
|
+
* When instantiating a new `DefaultMap`, you must specify default value as the first argument. (The
|
|
17
|
+
* default value is the initial value that will be assigned to every new entry in the
|
|
18
|
+
* `getAndSetDefault` method.) For example:
|
|
22
19
|
*
|
|
23
20
|
* ```ts
|
|
24
21
|
* // Initializes a new empty DefaultMap with a default value of "foo".
|
|
25
|
-
* const
|
|
22
|
+
* const defaultMapWithString = new DefaultMap<string, string>("foo");
|
|
26
23
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
* })
|
|
24
|
+
* const value = defaultMapWithString.getAndSetDefault("bar");
|
|
25
|
+
* // value is now "foo" and an entry for "bar" is now set.
|
|
26
|
+
* ```
|
|
31
27
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
28
|
+
* Sometimes, instead of having a static initial value for every entry in the map, you will want a
|
|
29
|
+
* dynamic initial value that is contingent upon the key or some other variable. In these cases, you
|
|
30
|
+
* can instead specify that the `DefaultMap` should run a function that will return the initial
|
|
31
|
+
* value. (This is referred to as a "factory function".) For example:
|
|
32
|
+
*
|
|
33
|
+
* ```ts
|
|
34
|
+
* // Initializes a new empty DefaultMap with a default value based on "someGlobalVariable".
|
|
35
|
+
* const factoryFunction = () => someGlobalVariable ? 0 : 1;
|
|
36
|
+
* const defaultMapWithFactoryFunction = new DefaultMap<string, string>(factoryFunction);
|
|
37
37
|
* ```
|
|
38
38
|
*
|
|
39
|
-
*
|
|
39
|
+
* Note that in TypeScript and Lua, booleans, numbers, and strings are "passed by value". This means
|
|
40
|
+
* that when the `DefaultMap` creates a new entry, if the default value is one of these 3 types, the
|
|
41
|
+
* values will be copied. On the other hand, arrays and maps and other complex data structures are
|
|
42
|
+
* "passed by reference". This means that when the `DefaultMap` creates a new entry, if the default
|
|
43
|
+
* value is an array, then it would not be copied. Instead, the same shared array would be assigned
|
|
44
|
+
* to every entry. Thus, to solve this problem, any variable that is passed by reference must be
|
|
45
|
+
* created using a factory function to ensure that each copy is unique. For example:
|
|
40
46
|
*
|
|
41
47
|
* ```ts
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
48
|
+
* // Initializes a new empty DefaultMap with a default value of a new empty array.
|
|
49
|
+
* const factoryFunction = () => [] as ;
|
|
50
|
+
* const defaultMapWithArray = new DefaultMap<string, string[]>(factoryFunction);
|
|
45
51
|
* ```
|
|
46
52
|
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
53
|
+
* In the previous two examples, the factory functions did not have any arguments. But you can also
|
|
54
|
+
* specify a factory function that takes one or more arguments:
|
|
49
55
|
*
|
|
50
56
|
* ```ts
|
|
51
57
|
* const factoryFunction = (arg: boolean) => arg ? 0 : 1;
|
|
52
|
-
* const
|
|
58
|
+
* const defaultMapWithArg = new DefaultMap<string, string, [arg: boolean]>(factoryFunction);
|
|
53
59
|
* ```
|
|
60
|
+
*
|
|
61
|
+
* Similar to a normal `Map`, you can also include an initializer list in the constructor as the
|
|
62
|
+
* second argument:
|
|
63
|
+
*
|
|
64
|
+
* ```ts
|
|
65
|
+
* // Initializes a DefaultMap with a default value of "foo" and some initial values.
|
|
66
|
+
* const defaultMapWithInitialValues = new DefaultMap<string, string>("foo", [
|
|
67
|
+
* ["a1", "a2"],
|
|
68
|
+
* ["b1", "b2"],
|
|
69
|
+
* ], );
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* Finally, note that `DefaultMap` has the following additional utility methods:
|
|
73
|
+
*
|
|
74
|
+
* - `getAndSetDefault` - The method that is called inside the overridden `get` method. In most
|
|
75
|
+
* cases, you can use the overridden `get` method instead of calling this function directly.
|
|
76
|
+
* However, if a factory function was provided during instantiation, and the factory function has
|
|
77
|
+
* one or more arguments, then you must call this method instead (and provide the corresponding
|
|
78
|
+
* arguments).
|
|
79
|
+
* - `getWithoutDefault` - Calls the original `Map.get` function (without setting the default
|
|
80
|
+
* value).
|
|
81
|
+
* - `getDefaultValue` - Returns the default value to be used for a new key. (If a factory function
|
|
82
|
+
* was provided during instantiation, this will execute the factory function.)
|
|
83
|
+
* - `getConstructorArg` - Helper method for cloning the map. Returns either the default value or
|
|
84
|
+
* the reference to the factory function.
|
|
54
85
|
*/
|
|
55
|
-
export declare class DefaultMap<
|
|
86
|
+
export declare class DefaultMap<Key, Value, Args extends unknown[] = []> extends Map<Key, Value> {
|
|
56
87
|
private defaultValue;
|
|
57
88
|
private defaultValueFactory;
|
|
58
89
|
/**
|
|
59
90
|
* See the main `DefaultMap` documentation:
|
|
60
91
|
* https://isaacscript.github.io/isaacscript-common/classes/classes_DefaultMap.DefaultMap
|
|
61
92
|
*/
|
|
62
|
-
constructor(
|
|
93
|
+
constructor(defaultValueOrFactoryFunction: Value | FactoryFunction<Value, Args>, initializerArray?: Iterable<[Key, Value]>);
|
|
63
94
|
/**
|
|
64
|
-
* If the key exists, this will return the same thing as the `get` method. Otherwise,
|
|
65
|
-
* a default value
|
|
95
|
+
* If the key exists, this will return the same thing as the normal `Map.get` method. Otherwise,
|
|
96
|
+
* it will set a default value for the provided key, and then return the default value.
|
|
66
97
|
*/
|
|
67
|
-
getAndSetDefault(key:
|
|
98
|
+
getAndSetDefault(key: Key, ...extraArgs: Args): Value;
|
|
99
|
+
getWithoutDefault(key: Key): Value | undefined;
|
|
68
100
|
/**
|
|
69
101
|
* Returns the default value to be used for a new key. (If a factory function was provided during
|
|
70
102
|
* instantiation, this will execute the factory function.)
|
|
71
103
|
*/
|
|
72
|
-
getDefaultValue(...extraArgs: Args):
|
|
104
|
+
getDefaultValue(...extraArgs: Args): Value;
|
|
73
105
|
/**
|
|
74
106
|
* Helper method for cloning the map. Returns either the default value or a reference to the
|
|
75
107
|
* factory function.
|
|
76
108
|
*/
|
|
77
|
-
getConstructorArg():
|
|
109
|
+
getConstructorArg(): Value | FactoryFunction<Value, Args>;
|
|
78
110
|
}
|
|
79
|
-
export {};
|