Majirefy Posted June 26, 2018 Share Posted June 26, 2018 Why not publish Typescript definition file to @types? So we can install TS types easily with npm install --save @types/phaser. It will auto update when we run npm update and no need to check this repo manually. Link to comment Share on other sites More sharing options...
ihev Posted June 26, 2018 Share Posted June 26, 2018 Try npm i @develephant/types-phaser --save and add the following to the tsconfig.json: { "typeRoots": [ "node_modules/@develephant/types-phaser" ] } Link to comment Share on other sites More sharing options...
Majirefy Posted June 26, 2018 Author Share Posted June 26, 2018 54 minutes ago, ihev said: Try npm i @develephant/types-phaser --save and add the following to the tsconfig.json: { "typeRoots": [ "node_modules/@develephant/types-phaser" ] } Thanks for reply! This npm package is for Phaser-CE, not Phaser 3, I think. Since Phaser CE comes with TS defination files in node modules, there is no need to install manually. But I think it would be helpful to have Phaser 3 types too. Bodman 1 Link to comment Share on other sites More sharing options...
Recommended Posts