Declarations for roomy, a small screen-management lua module.
Command | Description |
---|---|
yarn add -D tstl-roomy |
Install these declarations |
yarn add tesselode/roomy |
Install roomy |
Upon installation these declarations can be linked to a tsconfig.json file.
{
"compilerOptions": {
"types": [
"tstl-roomy"
]
}
}
And used within any .ts file.
import * as roomy from "roomy"
let manager = roomy.new();
love.load = () => {
manager.hook();
}
Make sure to append ";./node_modules/?/?.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/?/?.lua";