factorio-types 1.2.0 → 1.2.2
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/README.md +6 -0
- package/dist/classes.d.ts +2350 -3649
- package/dist/concepts.d.ts +1941 -2422
- package/dist/defines.d.ts +211 -211
- package/dist/events.d.ts +233 -253
- package/dist/global.d.ts +8 -8
- package/dist/prototypes.d.ts +866 -850
- package/dist/types.d.ts +1073 -991
- package/package.json +2 -2
- package/src/core.d.ts +40 -1
package/README.md
CHANGED
|
@@ -33,6 +33,12 @@ A very minimal proof-of-concept showing basic toolchain setup can be found [Here
|
|
|
33
33
|
|
|
34
34
|
A slightly more in-depth and realistic mode can be found [Here](https://github.com/sguest/basic-seablock)
|
|
35
35
|
|
|
36
|
+
## Primitives
|
|
37
|
+
|
|
38
|
+
Primitive types like `uint8` or `nil` are preserved from the docs to better represent expected data formats, and are aliased as typescript types, so `nil` is `null`, and the various numeric formats such as `uint8`, `float`, etc are aliases for `number`.
|
|
39
|
+
|
|
40
|
+
Note that since typescript has a single `number` type, the compiler will **not** prevent things like passing a `float` to a method that expects `uint8` because these are both just `number` types under the hood.
|
|
41
|
+
|
|
36
42
|
## Lualib
|
|
37
43
|
|
|
38
44
|
Factorio makes various lua functions available to mods via [LuaLib](https://github.com/wube/factorio-data/tree/master/core/lualib)
|