typed-factorio 3.19.1 → 3.19.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typed-factorio",
3
- "version": "3.19.1",
3
+ "version": "3.19.2",
4
4
  "description": "Featureful typescript definitions for the Factorio modding api.",
5
5
  "keywords": [
6
6
  "factorio",
@@ -16,7 +16,6 @@
16
16
  "license": "MIT",
17
17
  "files": [
18
18
  "**/*.d.ts",
19
- "*.d.ts",
20
19
  "!generator/**/*"
21
20
  ],
22
21
  "type": "module",
@@ -4326,14 +4326,14 @@ declare module "factorio:runtime" {
4326
4326
  * Only entities inheriting from {@link import("factorio:prototype").EntityWithOwnerPrototype EntityWithOwnerPrototype}, as well as {@link import("factorio:prototype").ItemRequestProxyPrototype ItemRequestProxyPrototype} and {@link import("factorio:prototype").EntityGhostPrototype EntityGhostPrototype} are assigned a unit number. Returns `nil` otherwise.
4327
4327
  * @see {@link https://lua-api.factorio.com/2.0.44/classes/LuaEntity.html#LuaEntity.unit_number Online documentation}
4328
4328
  */
4329
- readonly unit_number?: uint64
4329
+ readonly unit_number?: UnitNumber
4330
4330
  /**
4331
4331
  * The {@link LuaEntity#unit_number unit_number} of the entity contained in this ghost. It is the same as the unit number of the {@link import("factorio:prototype").EntityWithOwnerPrototype EntityWithOwnerPrototype} that was destroyed to create this ghost. If it was created by other means, or if the inner entity does not support unit numbers, this property is `nil`.
4332
4332
  *
4333
4333
  * _Can only be used if this is EntityGhost_
4334
4334
  * @see {@link https://lua-api.factorio.com/2.0.44/classes/LuaEntity.html#LuaEntity.ghost_unit_number Online documentation}
4335
4335
  */
4336
- readonly ghost_unit_number?: uint64
4336
+ readonly ghost_unit_number?: UnitNumber
4337
4337
  /**
4338
4338
  * The mining progress for this mining drill. Is a number in range [0, mining_target.prototype.mineable_properties.mining_time]. `nil` if this isn't a mining drill.
4339
4339
  * @see {@link https://lua-api.factorio.com/2.0.44/classes/LuaEntity.html#LuaEntity.mining_progress Online documentation}
@@ -5972,7 +5972,7 @@ declare module "factorio:runtime" {
5972
5972
  * Only entities inheriting from {@link import("factorio:prototype").EntityWithOwnerPrototype EntityWithOwnerPrototype}, as well as {@link import("factorio:prototype").ItemRequestProxyPrototype ItemRequestProxyPrototype} and {@link import("factorio:prototype").EntityGhostPrototype EntityGhostPrototype} are assigned a unit number. Returns `nil` otherwise.
5973
5973
  * @see {@link https://lua-api.factorio.com/2.0.44/classes/LuaEntity.html#LuaEntity.unit_number Online documentation}
5974
5974
  */
5975
- readonly unit_number?: uint64
5975
+ readonly unit_number?: UnitNumber
5976
5976
  /**
5977
5977
  * The mining progress for this mining drill. Is a number in range [0, mining_target.prototype.mineable_properties.mining_time]. `nil` if this isn't a mining drill.
5978
5978
  * @see {@link https://lua-api.factorio.com/2.0.44/classes/LuaEntity.html#LuaEntity.mining_progress Online documentation}
@@ -6240,7 +6240,7 @@ declare module "factorio:runtime" {
6240
6240
  * _Can only be used if this is EntityGhost_
6241
6241
  * @see {@link https://lua-api.factorio.com/2.0.44/classes/LuaEntity.html#LuaEntity.ghost_unit_number Online documentation}
6242
6242
  */
6243
- readonly ghost_unit_number?: uint64
6243
+ readonly ghost_unit_number?: UnitNumber
6244
6244
  }
6245
6245
  /**
6246
6246
  * @noSelf
@@ -35,7 +35,7 @@ declare module "factorio:runtime" {
35
35
  *
36
36
  * You can cast a raw number to this type, e.g. `1 as UnitNumber`.
37
37
  */
38
- type UnitNumber = uint & {
38
+ type UnitNumber = uint64 & {
39
39
  _unitNumberBrand: void
40
40
  }
41
41
  /**