typed-factorio
Version:
Featureful typescript definitions for the Factorio modding api.
16 lines (14 loc) • 492 B
TypeScript
/**
* Provides access to read/edit prototypes.
*
* This is only available in the settings or prototype stage.
* Only prototypes for the current stage can be accessed.
*/
declare const data: import("factorio:common").DataGlobal
/**
* A table of (mod name -> mod version) for all currently active mods.
*
* This global is only available in the settings or prototype stage.
* In the runtime stage, use `script.active_mods`.
*/
declare const mods: import("factorio:common").ActiveMods