TypeScript definitions generator that parses script APIs from Defold extensions. Made for use with TypeScript + Defold.
This tool searches through dependencies in your Defold project file, then attempts to find script_api files, and parse them to create TypeScript definitions.
yarn add tsd-ext-type-gen -D
# or
npm install tsd-ext-type-gen --save-devnpx xtgen
-ppath to yourgame.project(default./app/game.project)-opath to an output folder (default./@types)-mthe mode:projectfor locally installed Defold extensions orglobalfor Defold engine API docs (defaultproject)-rrelease type used inglobalmode:stableorbetachannel (defaultstable)
Started as a fork of @thejustinwalsh's type-gen, now with significant rewrites.
TypeScript ❤️ Defold
