phaser/scripts/tsgen
2024-09-03 14:37:28 +01:00
..
bin Parser build 2024-09-03 14:37:28 +01:00
jsdoc-plugins
src Fix #6854 #6737 (PipelineConfig TS) 2024-09-03 14:35:02 +01:00
test Updated TS parser for States enum 2022-09-20 22:23:23 +01:00
jsdoc-tsd.conf.json Ignore phaser-esm 2023-03-24 15:41:07 +00:00
README.md Updated Parser and README 2019-05-10 16:05:20 +01:00
tsconfig.json

TypeScript Defs Generation Tool

The TypeScript defs generation tool is called tsgen and is written in TypeScript. Build it by running npm run build-tsgen. This will compile the parser locally.

You can then run npm run tsgen to build the actual defs. They will replace the file located in the root types folder. Once the parser is built you only need use this command. Use it to re-generate the defs if you have modified the Phaser source code and wish to test your change worked.

There is also a test script available: npm run test-ts which will compile a test TypeScript project and output any compilation errors to output.txt.