reforged-types 1.0.0-alpha.1 → 1.0.0-alpha.3
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/3.0.0/common.j.d.ts +20 -2
- package/package.json +1 -1
package/3.0.0/common.j.d.ts
CHANGED
|
@@ -13662,6 +13662,7 @@ declare function GetPlayerName(whichPlayer: player): string | undefined;
|
|
|
13662
13662
|
|
|
13663
13663
|
/**
|
|
13664
13664
|
* @returns timer
|
|
13665
|
+
* @remarks Returned a handle in every case of the nullability sweep (one call) on 3.0.0.24268; evidence, not proof.
|
|
13665
13666
|
* @see {@link https://lep.duckdns.org/jassbot/doc/CreateTimer}
|
|
13666
13667
|
*/
|
|
13667
13668
|
declare function CreateTimer(): timer;
|
|
@@ -14071,6 +14072,7 @@ declare function ForForce(whichForce: force, callback: code): void;
|
|
|
14071
14072
|
* @param maxx - real
|
|
14072
14073
|
* @param maxy - real
|
|
14073
14074
|
* @returns rect
|
|
14075
|
+
* @remarks Returned a handle in every case of the nullability sweep (normal rect, inverted rect, zero area rect, rect outside the world) on 3.0.0.24268; evidence, not proof.
|
|
14074
14076
|
* @see {@link https://lep.duckdns.org/jassbot/doc/Rect}
|
|
14075
14077
|
*/
|
|
14076
14078
|
declare function Rect(minx: number, miny: number, maxx: number, maxy: number): rect;
|
|
@@ -14171,6 +14173,7 @@ declare function GetRectMaxY(whichRect: rect): number;
|
|
|
14171
14173
|
|
|
14172
14174
|
/**
|
|
14173
14175
|
* @returns region
|
|
14176
|
+
* @remarks Returned a handle in every case of the nullability sweep (one call) on 3.0.0.24268; evidence, not proof.
|
|
14174
14177
|
* @see {@link https://lep.duckdns.org/jassbot/doc/CreateRegion}
|
|
14175
14178
|
*/
|
|
14176
14179
|
declare function CreateRegion(): region;
|
|
@@ -14236,6 +14239,7 @@ declare function RegionClearCellAtLoc(whichRegion: region, whichLocation: locati
|
|
|
14236
14239
|
* @param x - real
|
|
14237
14240
|
* @param y - real
|
|
14238
14241
|
* @returns location
|
|
14242
|
+
* @remarks Returned a handle in every case of the nullability sweep (origin, outside the world) on 3.0.0.24268; evidence, not proof.
|
|
14239
14243
|
* @see {@link https://lep.duckdns.org/jassbot/doc/Location}
|
|
14240
14244
|
*/
|
|
14241
14245
|
declare function Location(x: number, y: number): location;
|
|
@@ -14311,6 +14315,7 @@ declare function GetWorldBounds(): rect | undefined;
|
|
|
14311
14315
|
|
|
14312
14316
|
/**
|
|
14313
14317
|
* @returns trigger
|
|
14318
|
+
* @remarks Returned a handle in every case of the nullability sweep (one call) on 3.0.0.24268; evidence, not proof.
|
|
14314
14319
|
* @see {@link https://lep.duckdns.org/jassbot/doc/CreateTrigger}
|
|
14315
14320
|
*/
|
|
14316
14321
|
declare function CreateTrigger(): trigger;
|
|
@@ -14457,6 +14462,7 @@ declare function ExecuteFunc(funcName: string): void;
|
|
|
14457
14462
|
* @param operandA - boolexpr
|
|
14458
14463
|
* @param operandB - boolexpr
|
|
14459
14464
|
* @returns boolexpr
|
|
14465
|
+
* @remarks Returned a handle in every case of the nullability sweep (two live operands, condition and filter, destroyed condition operand) on 3.0.0.24268; evidence, not proof.
|
|
14460
14466
|
* @see {@link https://lep.duckdns.org/jassbot/doc/And}
|
|
14461
14467
|
*/
|
|
14462
14468
|
declare function And(operandA: boolexpr, operandB: boolexpr): boolexpr;
|
|
@@ -14465,6 +14471,7 @@ declare function And(operandA: boolexpr, operandB: boolexpr): boolexpr;
|
|
|
14465
14471
|
* @param operandA - boolexpr
|
|
14466
14472
|
* @param operandB - boolexpr
|
|
14467
14473
|
* @returns boolexpr
|
|
14474
|
+
* @remarks Returned a handle in every case of the nullability sweep (two live operands, condition and filter, destroyed boolexpr operand) on 3.0.0.24268; evidence, not proof.
|
|
14468
14475
|
* @see {@link https://lep.duckdns.org/jassbot/doc/Or}
|
|
14469
14476
|
*/
|
|
14470
14477
|
declare function Or(operandA: boolexpr, operandB: boolexpr): boolexpr;
|
|
@@ -14472,6 +14479,7 @@ declare function Or(operandA: boolexpr, operandB: boolexpr): boolexpr;
|
|
|
14472
14479
|
/**
|
|
14473
14480
|
* @param operand - boolexpr
|
|
14474
14481
|
* @returns boolexpr
|
|
14482
|
+
* @remarks Returned a handle in every case of the nullability sweep (live operand, destroyed operand) on 3.0.0.24268; evidence, not proof.
|
|
14475
14483
|
* @see {@link https://lep.duckdns.org/jassbot/doc/Not}
|
|
14476
14484
|
*/
|
|
14477
14485
|
declare function Not(operand: boolexpr): boolexpr;
|
|
@@ -14479,6 +14487,7 @@ declare function Not(operand: boolexpr): boolexpr;
|
|
|
14479
14487
|
/**
|
|
14480
14488
|
* @param func - code
|
|
14481
14489
|
* @returns conditionfunc
|
|
14490
|
+
* @remarks Returned a handle in every case of the nullability sweep (TypeScript function) on 3.0.0.24268; evidence, not proof.
|
|
14482
14491
|
* @see {@link https://lep.duckdns.org/jassbot/doc/Condition}
|
|
14483
14492
|
*/
|
|
14484
14493
|
declare function Condition(func: boolcode): conditionfunc;
|
|
@@ -14493,6 +14502,7 @@ declare function DestroyCondition(c: conditionfunc): void;
|
|
|
14493
14502
|
/**
|
|
14494
14503
|
* @param func - code
|
|
14495
14504
|
* @returns filterfunc
|
|
14505
|
+
* @remarks Returned a handle in every case of the nullability sweep (TypeScript function) on 3.0.0.24268; evidence, not proof.
|
|
14496
14506
|
* @see {@link https://lep.duckdns.org/jassbot/doc/Filter}
|
|
14497
14507
|
*/
|
|
14498
14508
|
declare function Filter(func: boolcode): filterfunc;
|
|
@@ -15224,6 +15234,7 @@ declare function TriggerClearConditions(whichTrigger: trigger): void;
|
|
|
15224
15234
|
* @param whichTrigger - trigger
|
|
15225
15235
|
* @param actionFunc - code
|
|
15226
15236
|
* @returns triggeraction
|
|
15237
|
+
* @remarks On a destroyed trigger it returned a `triggeraction` whose `GetHandleId` is 0, not nothing; it returned a handle in every case of the nullability sweep (live trigger, destroyed trigger) on 3.0.0.24268; evidence, not proof.
|
|
15227
15238
|
* @see {@link https://lep.duckdns.org/jassbot/doc/TriggerAddAction}
|
|
15228
15239
|
*/
|
|
15229
15240
|
declare function TriggerAddAction(whichTrigger: trigger, actionFunc: code): triggeraction;
|
|
@@ -16761,6 +16772,7 @@ declare function GetUnitY(whichUnit: unit): number;
|
|
|
16761
16772
|
/**
|
|
16762
16773
|
* @param whichUnit - unit
|
|
16763
16774
|
* @returns location
|
|
16775
|
+
* @remarks Returned a handle in every case of the nullability sweep (live unit, dead unit, removed unit) on 3.0.0.24268; evidence, not proof.
|
|
16764
16776
|
* @see {@link https://lep.duckdns.org/jassbot/doc/GetUnitLoc}
|
|
16765
16777
|
*/
|
|
16766
16778
|
declare function GetUnitLoc(whichUnit: unit): location;
|
|
@@ -16797,6 +16809,7 @@ declare function GetUnitState(whichUnit: unit, whichUnitState: unitstate): numbe
|
|
|
16797
16809
|
/**
|
|
16798
16810
|
* @param whichUnit - unit
|
|
16799
16811
|
* @returns player
|
|
16812
|
+
* @remarks Returned a handle in every case of the nullability sweep (unit of player 0, Neutral Passive unit, dead unit, removed unit) on 3.0.0.24268; evidence, not proof.
|
|
16800
16813
|
* @see {@link https://lep.duckdns.org/jassbot/doc/GetOwningPlayer}
|
|
16801
16814
|
*/
|
|
16802
16815
|
declare function GetOwningPlayer(whichUnit: unit): player;
|
|
@@ -17696,6 +17709,7 @@ declare function Player(number: number): player | undefined;
|
|
|
17696
17709
|
/**
|
|
17697
17710
|
* @returns player
|
|
17698
17711
|
* @async
|
|
17712
|
+
* @remarks Returned a handle in every case of the nullability sweep (one call) on 3.0.0.24268; evidence, not proof.
|
|
17699
17713
|
* @see {@link https://lep.duckdns.org/jassbot/doc/GetLocalPlayer}
|
|
17700
17714
|
*/
|
|
17701
17715
|
declare function GetLocalPlayer(): player;
|
|
@@ -18672,9 +18686,10 @@ declare function GetStoredBoolean(cache: gamecache, missionKey: string, key: str
|
|
|
18672
18686
|
* @param missionKey - string
|
|
18673
18687
|
* @param key - string
|
|
18674
18688
|
* @returns string
|
|
18689
|
+
* @remarks Typed non-null, unlike the other string-returning Natives: the game gives an empty string when the cache holds no string under the key (jassdoc, `GetStoredString`).
|
|
18675
18690
|
* @see {@link https://lep.duckdns.org/jassbot/doc/GetStoredString}
|
|
18676
18691
|
*/
|
|
18677
|
-
declare function GetStoredString(cache: gamecache, missionKey: string, key: string): string
|
|
18692
|
+
declare function GetStoredString(cache: gamecache, missionKey: string, key: string): string;
|
|
18678
18693
|
|
|
18679
18694
|
/**
|
|
18680
18695
|
* @param cache - gamecache
|
|
@@ -21332,6 +21347,7 @@ declare function BlzCameraGetCameraType(): number;
|
|
|
21332
21347
|
|
|
21333
21348
|
/**
|
|
21334
21349
|
* @returns camerasetup
|
|
21350
|
+
* @remarks Returned a handle in every case of the nullability sweep (one call) on 3.0.0.24268; evidence, not proof.
|
|
21335
21351
|
* @see {@link https://lep.duckdns.org/jassbot/doc/CreateCameraSetup}
|
|
21336
21352
|
*/
|
|
21337
21353
|
declare function CreateCameraSetup(): camerasetup;
|
|
@@ -21367,6 +21383,7 @@ declare function CameraSetupSetDestPosition(whichSetup: camerasetup, x: number,
|
|
|
21367
21383
|
/**
|
|
21368
21384
|
* @param whichSetup - camerasetup
|
|
21369
21385
|
* @returns location
|
|
21386
|
+
* @remarks Returned a handle in every case of the nullability sweep (fresh setup, positioned setup) on 3.0.0.24268; evidence, not proof.
|
|
21370
21387
|
* @see {@link https://lep.duckdns.org/jassbot/doc/CameraSetupGetDestPositionLoc}
|
|
21371
21388
|
*/
|
|
21372
21389
|
declare function CameraSetupGetDestPositionLoc(whichSetup: camerasetup): location;
|
|
@@ -24611,9 +24628,10 @@ declare function BlzFrameSetParent(frame: framehandle, parent: framehandle): voi
|
|
|
24611
24628
|
* @param frame - framehandle
|
|
24612
24629
|
* @returns framehandle
|
|
24613
24630
|
* @async
|
|
24631
|
+
* @remarks Returns nothing for destroyed frame (nullability sweep, 3.0.0.24268).
|
|
24614
24632
|
* @see {@link https://lep.duckdns.org/jassbot/doc/BlzFrameGetParent}
|
|
24615
24633
|
*/
|
|
24616
|
-
declare function BlzFrameGetParent(frame: framehandle): framehandle;
|
|
24634
|
+
declare function BlzFrameGetParent(frame: framehandle): framehandle | undefined;
|
|
24617
24635
|
|
|
24618
24636
|
/**
|
|
24619
24637
|
* @param frame - framehandle
|
package/package.json
CHANGED