TypeScript declaration files for modding Civilization VI using the TypeScriptToLua transpiler. Version 1.0.11 provides type definitions for the Civ6 modding API, enabling type-safe Lua development with TypeScript. Released irregularly via npm. Key differentiator: bridges TypeScript to Lua for Civ6 modding, leveraging TSTL ecosystem. No stable release cadence; latest version as of early 2025 is 1.0.11.
npm install civvi-typesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows tsconfig setup with required types and a simple mod snippet using global Player type.
Do not use import statements. Add 'civvi-types' to the 'types' array in tsconfig.json.
Use ':' for method calls: object:method() not object.method().
Upgrade to 1.0.11 and follow new tsconfig pattern.
Install typescript, typescript-to-lua, lua-types, and @typescript-to-lua/language-extensions.
Add exactly: 'lua-types/core/coroutine', 'lua-types/core/global', 'lua-types/core/math', 'lua-types/core/metatable', 'lua-types/core/string', 'lua-types/core/table', '@typescript-to-lua/language-extensions', 'civvi-types'.
Add "civvi-types" to compilerOptions.types in tsconfig.json.
Replace '.' with ':' for method calls: object:method() instead of object.method().
Remove import statement; civvi-types is a global type package, not a module.