Skip to content

Commit fedc3e8

Browse files
committed
Fix declaration bug found by new TS version
1 parent d10f77b commit fedc3e8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

build/lua/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ const typePredicates: Record<string, string> = {
9191
'CDOTA_PlayerResource.IsValidTeamPlayerID': 'playerId is PlayerID',
9292
'CBaseEntity.IsPlayerController': 'this is CDOTAPlayerController',
9393
'CBaseEntity.IsPlayerPawn': 'this is CBasePlayerPawn',
94+
'CDOTA_Item.IsItem': 'this is CDOTA_Item',
9495
'CDOTABaseAbility.IsItem': 'this is CDOTA_Item',
9596
'ProjectileManager.IsValidProjectile': 'value is ProjectileID',
9697
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"npm-run-all": "^4.1.5",
4949
"prettier": "^2.1.2",
5050
"ts-node": "^10.9.1",
51-
"typescript": "^5.0.4",
51+
"typescript": "^5.5.2",
5252
"wordwrap": "^1.0.0"
5353
},
5454
"version": "0.1.0"

packages/dota-lua-types/types/api.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3491,7 +3491,7 @@ declare interface CDOTA_Item extends CDOTABaseAbility {
34913491
/** @both */
34923492
IsInBackpack(): boolean;
34933493
/** @both */
3494-
IsItem(): boolean;
3494+
IsItem(): this is CDOTA_Item;
34953495
/** @both */
34963496
IsKillable(): boolean;
34973497
/** @both */

0 commit comments

Comments
 (0)