After installing the plug-in you need to configure your project. You can structure your project as you like, I usually structured my project as follows:
To use the Phaser with the Typescript you need definition files. You can get them here. Just download them and put inside the source folder.
After that you can initialize your project. To do it click
crtl/cmd+shift+p and chose
Typescript: Create Tsconfig.json. Then you should have the
Tsconfig.json in your source folder. You can change it to fit your needs. For the full information just look into official documentation.
For this example I will compile all Typescript files to
game.js file inside
libs folder. To do so set
"out": "../libs/game.js" compiler option.
Now create your project files. When you open one of them, you will see the Typescript toolbar. To build your project just press
One side note: you need at least one
ts file in your path to initialize
Hopefully this guide will help you to get up and ready for Typescript development with Phaser.