typed-factorio 0.19.1 → 1.0.0-RC
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/Changelog.md +14 -8
- package/README.md +19 -14
- package/custom-index-template.d.ts +22 -0
- package/generated/classes.d.ts +366 -76
- package/generated/concepts.d.ts +3 -3
- package/generated/events.d.ts +138 -140
- package/generated/index-types.d.ts +49 -0
- package/package.json +2 -5
- package/runtime/index.d.ts +9 -1
- package/runtime/pairs.d.ts +4 -8
- package/strict-index-types.d.ts +3 -0
- package/generated/index.d.ts +0 -9
package/generated/concepts.d.ts
CHANGED
@@ -2478,7 +2478,7 @@ type TechnologyIdentification = string | LuaTechnology | LuaTechnologyPrototype
|
|
2478
2478
|
*
|
2479
2479
|
* {@link https://lua-api.factorio.com/latest/Concepts.html#SurfaceIdentification View documentation}
|
2480
2480
|
*/
|
2481
|
-
type SurfaceIdentification =
|
2481
|
+
type SurfaceIdentification = SurfaceIndex | string | LuaSurface
|
2482
2482
|
|
2483
2483
|
/**
|
2484
2484
|
* - uint: The player index.
|
@@ -2489,7 +2489,7 @@ type SurfaceIdentification = uint | string | LuaSurface
|
|
2489
2489
|
*
|
2490
2490
|
* {@link https://lua-api.factorio.com/latest/Concepts.html#PlayerIdentification View documentation}
|
2491
2491
|
*/
|
2492
|
-
type PlayerIdentification =
|
2492
|
+
type PlayerIdentification = PlayerIndex | string | LuaPlayer
|
2493
2493
|
|
2494
2494
|
type ItemStackIdentification = SimpleItemStack | LuaItemStack
|
2495
2495
|
|
@@ -3334,7 +3334,7 @@ interface CustomCommandData {
|
|
3334
3334
|
/**
|
3335
3335
|
* The player who issued the command, or `nil` if it was issued from the server console.
|
3336
3336
|
*/
|
3337
|
-
readonly player_index?:
|
3337
|
+
readonly player_index?: PlayerIndex
|
3338
3338
|
/**
|
3339
3339
|
* The parameter passed after the command, if there is one.
|
3340
3340
|
*/
|