Home

Awesome

TSTL Roomy

Declarations for roomy, a small screen-management lua module.

CommandDescription
yarn add -D tstl-roomyInstall these declarations
yarn add tesselode/roomyInstall 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";