Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 555 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 555 Bytes

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.