typed-factorio 2.0.1 → 2.2.0

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/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.1",
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-runtime-api && npm run clean && npm run generate && npm run check && npm run new-version-changelog && npm version minor"
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",