reforged-types 1.0.0-alpha.2 → 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.
@@ -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;
@@ -21333,6 +21347,7 @@ declare function BlzCameraGetCameraType(): number;
21333
21347
 
21334
21348
  /**
21335
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.
21336
21351
  * @see {@link https://lep.duckdns.org/jassbot/doc/CreateCameraSetup}
21337
21352
  */
21338
21353
  declare function CreateCameraSetup(): camerasetup;
@@ -21368,6 +21383,7 @@ declare function CameraSetupSetDestPosition(whichSetup: camerasetup, x: number,
21368
21383
  /**
21369
21384
  * @param whichSetup - camerasetup
21370
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.
21371
21387
  * @see {@link https://lep.duckdns.org/jassbot/doc/CameraSetupGetDestPositionLoc}
21372
21388
  */
21373
21389
  declare function CameraSetupGetDestPositionLoc(whichSetup: camerasetup): location;
@@ -24612,9 +24628,10 @@ declare function BlzFrameSetParent(frame: framehandle, parent: framehandle): voi
24612
24628
  * @param frame - framehandle
24613
24629
  * @returns framehandle
24614
24630
  * @async
24631
+ * @remarks Returns nothing for destroyed frame (nullability sweep, 3.0.0.24268).
24615
24632
  * @see {@link https://lep.duckdns.org/jassbot/doc/BlzFrameGetParent}
24616
24633
  */
24617
- declare function BlzFrameGetParent(frame: framehandle): framehandle;
24634
+ declare function BlzFrameGetParent(frame: framehandle): framehandle | undefined;
24618
24635
 
24619
24636
  /**
24620
24637
  * @param frame - framehandle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reforged-types",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.3",
4
4
  "description": "TypeScript declarations for the Warcraft III Reforged natives, generated from the game's Patch files.",
5
5
  "license": "MIT",
6
6
  "type": "module",