This commit is contained in:
2021-06-28 20:13:42 -05:00
parent dc5f38b232
commit 068ba071ab

View File

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