tsd-ext-type-gen
v2.1.4
Published
TypeScript definitions generator that parses script APIs from Defold extensions
Downloads
142
Readme
TS Definitions Generator for TypeScript-Defold
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.
Installation
yarn add tsd-ext-type-gen -D
# or
npm install tsd-ext-type-gen --save-devUsage
npx 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)
Background
Started as a fork of @thejustinwalsh's type-gen, now with significant rewrites.
