Skip to content

tomblind/ts-liblua

Repository files navigation

TypeScript Lua Library Declarations

Lua library declarations for use with TypeScriptToLua.

Usage

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.

Helper types

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.

Disabling Javascript Libraries

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.

About

Lua library declarations for TypeScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published