typed-factorio 2.0.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lualib/util.d.ts +4 -4
- package/package.json +3 -3
- package/prototype/generated/prototypes.d.ts +1809 -1710
- package/prototype/generated/types.d.ts +1426 -1420
- package/runtime/generated/builtin-types.d.ts +16 -16
- package/runtime/generated/classes.d.ts +3291 -3305
- package/runtime/generated/concepts.d.ts +1817 -1817
- package/runtime/generated/defines.d.ts +165 -101
- package/runtime/generated/events.d.ts +190 -186
- package/runtime/generated/global-functions.d.ts +3 -3
- package/runtime/generated/global-objects.d.ts +6 -6
- package/runtime/pairs.d.ts +1 -1
package/lualib/util.d.ts
CHANGED
@@ -52,7 +52,7 @@ declare module "util" {
|
|
52
52
|
function moveposition(
|
53
53
|
position: MapPositionArray,
|
54
54
|
direction: defines.direction.north,
|
55
|
-
distance: number
|
55
|
+
distance: number,
|
56
56
|
): MapPositionArray
|
57
57
|
|
58
58
|
function oppositedirection(direction: defines.direction): defines.direction
|
@@ -70,7 +70,7 @@ declare module "util" {
|
|
70
70
|
|
71
71
|
function foreach_sprite_definition<T extends SpriteWithHrVersion>(
|
72
72
|
sprite: T,
|
73
|
-
fun: (sprite: T & T["hr_version"]) => void
|
73
|
+
fun: (sprite: T & T["hr_version"]) => void,
|
74
74
|
): void
|
75
75
|
|
76
76
|
function add_shift(a: MapPositionArray | nil, b: MapPositionArray): MapPositionArray
|
@@ -79,7 +79,7 @@ declare module "util" {
|
|
79
79
|
|
80
80
|
function add_shift_offset<T extends SpriteWithHrVersion<{ shift?: MapPositionArray }>>(
|
81
81
|
offset: MapPositionArray | nil,
|
82
|
-
sprite: T
|
82
|
+
sprite: T,
|
83
83
|
): T
|
84
84
|
|
85
85
|
function mul_shift(shift: MapPositionArray, scale: number | nil): MapPositionArray
|
@@ -124,7 +124,7 @@ declare module "util" {
|
|
124
124
|
scale?: number
|
125
125
|
shift?: MapPositionArray
|
126
126
|
tint?: AnyColor
|
127
|
-
}
|
127
|
+
},
|
128
128
|
): T[]
|
129
129
|
|
130
130
|
// omitted: technology_icons. Create an issue if you really want to see these
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "typed-factorio",
|
3
|
-
"version": "2.0
|
3
|
+
"version": "2.2.0",
|
4
4
|
"description": "Featureful typescript definitions for the Factorio modding api.",
|
5
5
|
"keywords": [
|
6
6
|
"factorio",
|
@@ -20,13 +20,13 @@
|
|
20
20
|
"scripts": {
|
21
21
|
"generate": "ts-node --esm -P generator/tsconfig.json generator/main.ts",
|
22
22
|
"generate-no-format": "ts-node --swc -T --esm -P generator/tsconfig.json generator/main.ts --no-format",
|
23
|
-
"clean": "rimraf runtime/generated",
|
23
|
+
"clean": "rimraf runtime/generated prototype/generated",
|
24
24
|
"lint": "eslint .",
|
25
25
|
"check": "npm run lint",
|
26
26
|
"prepublishOnly": "npm run generate && npm run check",
|
27
27
|
"download-latest-json-apis": "ts-node --esm ./scripts/download-latest.ts",
|
28
28
|
"new-version-changelog": "ts-node --esm ./scripts/new-version-changelog.ts",
|
29
|
-
"next-factorio-version": "npm run download-latest-
|
29
|
+
"next-factorio-version": "npm run download-latest-json-apis && npm run clean && npm run generate && npm run check && npm run new-version-changelog && npm version minor"
|
30
30
|
},
|
31
31
|
"peerDependencies": {
|
32
32
|
"lua-types": "^2.13.1",
|