Lua library declarations for use with TypeScriptToLua.
Each declaration file is a complete set of declarations for a specific Lua version. Add the one that matches your lua version to your TypeScript project.
Note that there are two versions for LuaJIT: lib.luajit.d.ts
and lib.luajit52.ts
. The later should be used if you're using a version of LuaJIT compiled with LUAJIT_ENABLE_LUA52COMPAT
.
TypescriptToLua supports type annotations which allow additional features of Lua to be accessible from Typescript. Add lib.tstl.d.ts
to your project to access convenience types already set up with these annotations. See TypescriptToLua Compiler Annotations for more details.
If you wish to disable the standard ES libraries and only use Lua's, add lib.esnone.d.ts
to your project and set noLib
in your TypeScript configuration.