Typescript declarations for the factorio mod API. Note this library is not particularly "battle-hardened" by real use, but is here for anyone that may get value from it.
Install factorio-types
from npm, but note the warning above about minimal testing.
Intended to be used with Typescript to Lua. This library uses some language extensions from the TSTL library, such as the LuaMultiReturn
type to handle functions that return multiple values. Enable these extensions in your project's tsconfig as per the docs
A very minimal proof-of-concept showing basic toolchain setup can be found Here