Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lua-types) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Lua Types
TypeScript definitions for Lua standard library
Installation
NOTE: In most of cases your environment-specific types would already include this package. In that case you don't need to do anything. If you're a developer of such types you should add
lua-typesas a dependency and load it by adding/// <reference types="lua-types/<version>" />
- Get this package from npm
yarn add -D lua-types
# or
npm install -D lua-types- Modify your
tsconfig.json
{
"compilerOptions": {
+ "types": ["lua-types/<version>"]
}
}Where <version> is one of:
5.15.25.35.4jit
NOTE: All other files in this module shouldn't be considered public. Do not import them manually, as they may change in non-major updates. If your environment doesn't provide all of standard Lua features, consider banning them with a no-restricted-globals eslint rule.