783 B
783 B
types-ts-2take1
Typescript types for 2take1, used with typescripttolua
installing
downloading types
npm i -D git+https://git@git.zomo.dev/zomo/types-ts-2take1
using types
edit/create tsconfig.json
{
"compilerOptions": {
"types": [
"types-ts-2take1"
]
}
}
other recommended/optional settings
general compiling options
tsconfig.json
{
"compilerOptions": {
"target": "esnext",
"lib": ["esnext"],
"moduleResolution": "node",
"strict": true,
}
}
issues compiling
tsconfig.json
{
"tstl": {
"luaTarget": "universal",
"luaLibImport": "inline",
"luaBundle": "main.lua",
"luaBundleEntry": "./path/to/main.ts",
}
}