Antriel / phaser-ts2hx

Convert Phaser's TypeScript definitions to Haxe externs.
MIT License
3 stars 1 forks source link

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.