Skip to content

TypeScriptToLua/lua-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 28, 2022
b224030 · Nov 28, 2022
Sep 4, 2022
Nov 25, 2022
Aug 10, 2022
Sep 4, 2022
Feb 19, 2019
Sep 4, 2022
Aug 10, 2022
Jun 30, 2020
Jun 30, 2020
Jun 30, 2020
Jun 30, 2020
Feb 19, 2019
Mar 13, 2021
Mar 13, 2021
Jun 30, 2020
Nov 28, 2022
Nov 28, 2022

Repository files navigation

Lua Types

npm Travis

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-types as a dependency and load it by adding /// <reference types="lua-types/<version>" />

  1. Get this package from npm
yarn add -D lua-types
# or
npm install -D lua-types
  1. Modify your tsconfig.json
{
  "compilerOptions": {
+    "types": ["lua-types/<version>"]
  }
}

Where <version> is one of:

  • 5.1
  • 5.2
  • 5.3
  • 5.4
  • jit

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.