@typed-tabletop-simulator/ui
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

Tabletop Simulator Types

TypeScript definitions for the Tabletop Simulator API that can be used to transpile Typescript file to Lua with the Typescript to Lua transpiler.

Usage

Install the package

npm install --save-dev @typed-tabletop-simulator/ui

Be sure to also install TSTL.

Configure your tsconfig.json to include those settings:

{
    "compilerOptions": {
        "jsx": "react",
        "jsxFactory": "XmlUi.createElement",
        "jsxFragmentFactory": "XmlUi.Fragment",
        // Include the types from this package as well as the Lua language extension from TSTL
        "types": ["@typed-tabletop-simulator/declaration", "@typed-tabletop-simulator/ui", "typescript-to-lua/language-extensions"]
    }
    }
}

Package Sidebar

Install

npm i @typed-tabletop-simulator/ui

Weekly Downloads

13

Version

0.5.1

License

CC0-1.0

Unpacked Size

140 kB

Total Files

64

Last publish

Collaborators

  • sebaestschjin