Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 1.1 KB

README.md

File metadata and controls

19 lines (15 loc) · 1.1 KB

TypeScript support for Defold game engine

TypeScript declaration files for Defold API.

How to Install and Use.

VS Code Defold TypeScript

  • This repo has only TypeScript declaration files for Defold API.
  • It's recommended to download and use Defold project template from GitHub Releases
  • Or clone (you have to clone!! it has submodules) this GitHub repository

Code Generation

Using TypeScript you get strong type check, typed arguments, classes, inheritance and more. All reflects to Lua basic constructions. TS to Lua work the same way as TS to JS. Very useful for big projects development. Generated Lua code is very clean and human readable.

TODO

  • (DONE) Auto generate defold.d.ts file with full Defold support.
  • (DONE) Add types to function's arguments where it's possible.
  • (DONE) Add build system.
  • Further development of TypeScript to Lua Transpiler