Skip to content

Node module of typescript declarations used for Civ VI modding with TypeScriptToLua transpiler

Notifications You must be signed in to change notification settings

Wild-W/civvi-types

Repository files navigation

Civ VI Types

npm install

TypeScript definitions for Civilization VI using TypeScriptToLua

image

Installation

  1. Get this package from npm
yarn add civvi-types --dev
# or
npm install civvi-types --save-dev 
  1. Modify your tsconfig.json

Highly recommended template you can use:

{
    "$schema": "https://raw.githubusercontent.com/TypeScriptToLua/TypeScriptToLua/master/tsconfig-schema.json",
    "compilerOptions": {
        "target": "esnext",
        "lib": [
            "ES2022.Array",
            "ES2022.Error",
            "ES2022.Object",
            "ES2022.String",
            "ES2015.Promise",
            "ES5",
            "ES2015.Iterable"
        ],
        "moduleResolution": "node",
        "types": [
            "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"
        ],
        "strict": true
    },
    "tstl": {
        "luaTarget": "5.1",
        "luaLibImport": "inline",
        "noImplicitGlobalVariables": true,
        "noImplicitSelf": true
    }
}

About

Node module of typescript declarations used for Civ VI modding with TypeScriptToLua transpiler

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published