Files
types-ts-2take1/readme.md
2021-06-28 20:13:42 -05:00

56 lines
783 B
Markdown

# 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",
}
}
```