Skip to content

thinknathan/tsd-ext-type-gen

Repository files navigation

Ext Type-Gen

TS Definitions Generator for TypeScript-Defold

CI GitHub License Chat with us!

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-dev

Usage

npx xtgen

  • -p path to your game.project (default ./app/game.project)
  • -o path to an output folder (default ./@types)

Background

Started as a fork of @thejustinwalsh's type-gen, now with significant rewrites.

TypeScript ❤️ Defold