tstl-log-lua
v0.0.0
Published
Declarations for [log.lua](https://github.com/rxi/log.lua), A tiny logging module for Lua.
Downloads
1
Maintainers
Readme
TSTL json.lua
Declarations for log.lua, A tiny logging module for Lua.
| Command | Description |
|-|-|
| yarn add -D tstl-log-lua
| Install these declarations |
| yarn add rxi/log.lua
| Install log.lua |
Upon installation these declarations can be linked to a tsconfig.json file.
{
"compilerOptions": {
"types": [
"tstl-log-lua"
]
}
}
And used within any .ts file.
import * as log from "log";
log.usecolor = true;
log.info("Hello world!");
Make sure to append ";./node_modules/log.lua/?.lua"
to your package.path
in a conf.ts file (this is run first) to assist where Lua looks for modules.
package.path += ";./node_modules/log.lua/?.lua";
Also you need to add "typescript-to-lua/language-extensions"
to tsconfig.json file.
{
"compilerOptions": {
"types": [
"typescript-to-lua/language-extensions"
]
}
}