factorio-types 1.2.0 → 1.2.1

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/global.d.ts CHANGED
@@ -2,8 +2,8 @@
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 1.1.107
6
- // API version 4
5
+ // Factorio version 1.1.108
6
+ // API version 5
7
7
 
8
8
  /**
9
9
  * Allows registration of custom commands for the in-game console.
@@ -50,16 +50,16 @@ declare function log(this: void,
50
50
  *
51
51
  * ```
52
52
  * local function size(t)
53
- * local count = 0
54
- * for k,v in pairs(t) do
55
- * count = count + 1
56
- * end
57
- * return count
53
+ * local count = 0
54
+ * for k,v in pairs(t) do
55
+ * count = count + 1
56
+ * end
57
+ * return count
58
58
  * end
59
59
  * ```
60
60
  *
61
61
  * Note that `table_size()` does not work correctly for {@link LuaCustomTable | runtime:LuaCustomTable}, their size has to be determined with {@link LuaCustomTable::length_operator | runtime:LuaCustomTable::length_operator} instead.
62
62
  */
63
63
  declare function table_size(this: void,
64
- table: Table): number
64
+ table: runtime.table): uint
65
65