Convert Phaser's TypeScript definitions to Haxe externs.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
export
phaser_definitions
src
.gitignore
LICENSE
README.md
tsconfig.json

README.md

phaser-ts2hx

Convertor for Phaser's TypeScript definitions to Haxe externs.
Written in TypeScript, running on NodeJS.

This was quickly thrown together so the code is not very nice and is quite specific to Phaser. That said, it could be used as starting point for more general converter.

Usage

node main.js <phaser.d.ts> <export_path>

e.g.

node build/main.js phaser_definitions/phaser.comments.d.ts export/

The generated export folder currently contains externs for Phaser-CE 2.7.8.