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-dev
npx xtgen
-p
path to yourgame.project
(default./app/game.project
)-o
path to an output folder (default./@types
)
Started as a fork of @thejustinwalsh's type-gen, now with significant rewrites.
TypeScript ❤️ Defold