factorio-types 1.2.26 → 1.2.27

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/dist/classes.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Factorio API reference https://lua-api.factorio.com/latest/index.html
3
3
  // Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.0.38
5
+ // Factorio version 2.0.39
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -16049,7 +16049,7 @@ interface LuaSchedule {
16049
16049
  */
16050
16050
  clear_interrupts(this: void): void;
16051
16051
  /**
16052
- * @param uint If provided, clears the records for this interrupt.
16052
+ * @param interrupt_index If provided, clears the records for this interrupt.
16053
16053
  */
16054
16054
  clear_records(this: void, interrupt_index?: uint): void;
16055
16055
  /**
@@ -16074,7 +16074,7 @@ interface LuaSchedule {
16074
16074
  */
16075
16075
  get_record_count(this: void, interrupt_index?: uint): uint | null;
16076
16076
  /**
16077
- * @param uint If provided, gets the records for this interrupt.
16077
+ * @param interrupt_index If provided, gets the records for this interrupt.
16078
16078
  */
16079
16079
  get_records(this: void, interrupt_index?: uint): ScheduleRecord[] | null;
16080
16080
  /**
@@ -16116,7 +16116,7 @@ interface LuaSchedule {
16116
16116
  set_allow_unloading(this: void, index: ScheduleRecordPosition, allow: boolean): void;
16117
16117
  set_interrupts(this: void, interrupts: ScheduleInterrupt[]): void;
16118
16118
  /**
16119
- * @param uint If provided, the records will be set on this interrupt.
16119
+ * @param interrupt_index If provided, the records will be set on this interrupt.
16120
16120
  */
16121
16121
  set_records(this: void, records: ScheduleRecord[], interrupt_index?: uint): void;
16122
16122
  set_stopped(this: void, stopped: boolean): void;
@@ -2,7 +2,7 @@
2
2
  // Factorio API reference https://lua-api.factorio.com/latest/index.html
3
3
  // Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.0.38
5
+ // Factorio version 2.0.39
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
@@ -41,8 +41,10 @@ interface AddRecordData {
41
41
  */
42
42
  station?: string;
43
43
  rail?: LuaEntity;
44
- // defined as RailDirection, which has no info on it
45
- rail_direction?: any;
44
+ /**
45
+ * When `rail` is given, this can be provided to further narrow down direction from which that rail should be approached.
46
+ */
47
+ rail_direction?: defines.rail_direction;
46
48
  wait_conditions?: WaitCondition[];
47
49
  temporary?: boolean;
48
50
  allows_unloading?: boolean;
@@ -2,7 +2,7 @@
2
2
  // Factorio API reference https://lua-api.factorio.com/latest/index.html
3
3
  // Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.0.38
5
+ // Factorio version 2.0.39
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
package/dist/defines.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Factorio API reference https://lua-api.factorio.com/latest/index.html
3
3
  // Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.0.38
5
+ // Factorio version 2.0.39
6
6
  // API version 6
7
7
 
8
8
  declare namespace defines {
package/dist/events.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Factorio API reference https://lua-api.factorio.com/latest/index.html
3
3
  // Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.0.38
5
+ // Factorio version 2.0.39
6
6
  // API version 6
7
7
 
8
8
  declare namespace runtime {
package/dist/global.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Factorio API reference https://lua-api.factorio.com/latest/index.html
3
3
  // Generated from JSON source https://lua-api.factorio.com/latest/runtime-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.0.38
5
+ // Factorio version 2.0.39
6
6
  // API version 6
7
7
 
8
8
  /**
@@ -2,7 +2,7 @@
2
2
  // Factorio API reference https://lua-api.factorio.com/latest/index.html
3
3
  // Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.0.38
5
+ // Factorio version 2.0.39
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
package/dist/types.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  // Factorio API reference https://lua-api.factorio.com/latest/index.html
3
3
  // Generated from JSON source https://lua-api.factorio.com/latest/prototype-api.json
4
4
  // Definition source https://github.com/sguest/factorio-types
5
- // Factorio version 2.0.38
5
+ // Factorio version 2.0.39
6
6
  // API version 6
7
7
 
8
8
  declare namespace prototype {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factorio-types",
3
- "version": "1.2.26",
3
+ "version": "1.2.27",
4
4
  "description": "Typescript declarations for the Factorio mod API",
5
5
  "main": "index.d.ts",
6
6
  "repository": "https://github.com/sguest/factorio-types.git",
@@ -23,7 +23,7 @@
23
23
  "src/**/*.d.ts",
24
24
  "dist/**/*.d.ts"
25
25
  ],
26
- "factorioVersion": "2.0.38",
26
+ "factorioVersion": "2.0.39",
27
27
  "dependencies": {
28
28
  "lua-types": "^2.13.1"
29
29
  },