typed-factorio 1.7.4 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- package/generated/classes.d.ts +19 -3
- package/package.json +13 -9
package/generated/classes.d.ts
CHANGED
@@ -1276,10 +1276,11 @@ interface LuaControl {
|
|
1276
1276
|
| LuaEquipmentGrid
|
1277
1277
|
| LuaPlayer
|
1278
1278
|
| LuaGuiElement
|
1279
|
+
| LuaInventory
|
1279
1280
|
| defines.gui_type
|
1280
1281
|
| nil
|
1281
1282
|
)
|
1282
|
-
get opened(): LuaEntity | LuaEquipment | LuaEquipmentGrid | LuaPlayer | LuaGuiElement | nil
|
1283
|
+
get opened(): LuaEntity | LuaEquipment | LuaEquipmentGrid | LuaPlayer | LuaGuiElement | LuaInventory | nil
|
1283
1284
|
/**
|
1284
1285
|
* Size of the crafting queue.
|
1285
1286
|
* @see {@link https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.crafting_queue_size Online documentation}
|
@@ -7750,7 +7751,14 @@ interface LuaEntityPrototype {
|
|
7750
7751
|
*/
|
7751
7752
|
readonly torso_rotation_speed?: double
|
7752
7753
|
/**
|
7753
|
-
*
|
7754
|
+
* The torso bob speed of this spider vehicle prototype.
|
7755
|
+
*
|
7756
|
+
* _Can only be used if this is SpiderVehicle_
|
7757
|
+
* @see {@link https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.torso_bob_speed Online documentation}
|
7758
|
+
*/
|
7759
|
+
readonly torso_bob_speed?: double
|
7760
|
+
/**
|
7761
|
+
* Whether this spider vehicle prototype automatically cycles weapons.
|
7754
7762
|
*
|
7755
7763
|
* _Can only be used if this is SpiderVehicle_
|
7756
7764
|
* @see {@link https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.automatic_weapon_cycling Online documentation}
|
@@ -8977,7 +8985,14 @@ interface SpiderVehicleEntityPrototype extends BaseEntityPrototype {
|
|
8977
8985
|
*/
|
8978
8986
|
readonly torso_rotation_speed?: double
|
8979
8987
|
/**
|
8980
|
-
*
|
8988
|
+
* The torso bob speed of this spider vehicle prototype.
|
8989
|
+
*
|
8990
|
+
* _Can only be used if this is SpiderVehicle_
|
8991
|
+
* @see {@link https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.torso_bob_speed Online documentation}
|
8992
|
+
*/
|
8993
|
+
readonly torso_bob_speed?: double
|
8994
|
+
/**
|
8995
|
+
* Whether this spider vehicle prototype automatically cycles weapons.
|
8981
8996
|
*
|
8982
8997
|
* _Can only be used if this is SpiderVehicle_
|
8983
8998
|
* @see {@link https://lua-api.factorio.com/latest/LuaEntityPrototype.html#LuaEntityPrototype.automatic_weapon_cycling Online documentation}
|
@@ -19481,6 +19496,7 @@ interface LuaRemote {
|
|
19481
19496
|
* @param args Arguments to pass to the called function.
|
19482
19497
|
* @see {@link https://lua-api.factorio.com/latest/LuaRemote.html#LuaRemote.call Online documentation}
|
19483
19498
|
*/
|
19499
|
+
call<T extends (...args: any) => any>(_interface: string, _function: string, ...args: Parameters<T>): ReturnType<T>
|
19484
19500
|
call(_interface: string, _function: string, ...args: readonly Any[]): Any | nil
|
19485
19501
|
/**
|
19486
19502
|
* List of all registered interfaces. For each interface name, `remote.interfaces[name]` is a dictionary mapping the interface's registered functions to the value `true`.
|
package/package.json
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "typed-factorio",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.8.1",
|
4
4
|
"description": "Featureful typescript definitions for the the Factorio modding lua api.",
|
5
5
|
"keywords": [
|
6
|
-
"factorio",
|
6
|
+
"factorio",
|
7
|
+
"types",
|
8
|
+
"typescript-to-lua",
|
9
|
+
"tstl"
|
7
10
|
],
|
8
11
|
"repository": "https://github.com/GlassBricks/typed-factorio",
|
9
12
|
"license": "MIT",
|
@@ -23,20 +26,20 @@
|
|
23
26
|
"prepublishOnly": "yarn run check",
|
24
27
|
"download-latest-runtime-api": "ts-node --esm ./scripts/download-latest.ts",
|
25
28
|
"new-version-changelog": "ts-node --esm ./scripts/new-version-changelog.ts",
|
26
|
-
"next-version": "yarn run download-latest-runtime-api && yarn run clean && yarn run check && yarn run new-version-changelog &&
|
29
|
+
"next-factorio-version": "yarn run download-latest-runtime-api && yarn run clean && yarn run check && yarn run new-version-changelog && npm version minor"
|
27
30
|
},
|
28
31
|
"peerDependencies": {
|
29
32
|
"lua-types": "^2.13.0",
|
30
33
|
"typescript-to-lua": "^1.6.1"
|
31
34
|
},
|
32
35
|
"devDependencies": {
|
33
|
-
"@types/jest": "^
|
34
|
-
"@types/node": "^18.7.
|
36
|
+
"@types/jest": "^29.0.1",
|
37
|
+
"@types/node": "^18.7.16",
|
35
38
|
"@types/prettier": "^2.7.0",
|
36
39
|
"@typescript-eslint/eslint-plugin": "^5.36.2",
|
37
40
|
"@typescript-eslint/parser": "^5.36.2",
|
38
41
|
"chalk": "^5.0.1",
|
39
|
-
"eslint": "~8.23.
|
42
|
+
"eslint": "~8.23.1",
|
40
43
|
"eslint-config-prettier": "^8.5.0",
|
41
44
|
"eslint-config-standard": "^17.0.0",
|
42
45
|
"eslint-import-resolver-typescript": "^3.5.1",
|
@@ -45,12 +48,13 @@
|
|
45
48
|
"eslint-plugin-node": "^11.1.0",
|
46
49
|
"eslint-plugin-prettier": "^4.2.1",
|
47
50
|
"eslint-plugin-promise": "^6.0.1",
|
48
|
-
"jest": "^
|
51
|
+
"jest": "^29.0.3",
|
49
52
|
"lua-types": "^2.13.0",
|
50
53
|
"prettier": "^2.7.1",
|
51
|
-
"
|
54
|
+
"rimraf": "^3.0.2",
|
55
|
+
"ts-jest": "^29.0.0",
|
52
56
|
"ts-node": "^10.9.1",
|
53
|
-
"typescript": "~4.8.
|
57
|
+
"typescript": "~4.8.3",
|
54
58
|
"typescript-to-lua": "^1.10.0"
|
55
59
|
},
|
56
60
|
"packageManager": "yarn@3.2.3"
|