typed-factorio 0.19.1 → 0.20.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/Changelog.md +14 -8
- package/README.md +26 -15
- package/custom-index-template.d.ts +24 -0
- package/generated/classes.d.ts +58 -58
- package/generated/concepts.d.ts +3 -3
- package/generated/events.d.ts +137 -139
- package/generated/index-types-strict.d.ts +52 -0
- package/generated/index-types.d.ts +38 -0
- package/package.json +2 -5
- package/runtime/index.d.ts +9 -1
- package/runtime/pairs.d.ts +1 -0
- package/runtime/strict-index-types.d.ts +18 -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
|
*/
|