pixijs / customize

Customize the list of packages to use for PixiJS v5
https://pixijs.io/customize
11 stars 5 forks source link

Feature Request: Typescript support #8

Closed scythianfuego closed 3 years ago

scythianfuego commented 5 years ago

The thing is @pixi/* modules don't have any type declarations (as everything is in pixi.js module), so typescript has no type information when importing directly.

It will compile, but systems like webpack at-loader treat this as fatal generating TS2339: Property does not exist on type ...

bigtimebuddy commented 5 years ago

Yeah this is more an issue with pixijs not having typings yet. We are working on this support by converting to TypeScript.

As a workaround, you can see what I did with pixi-sound by manually creating typings:

https://github.com/pixijs/pixi-sound/tree/master/typings

bigtimebuddy commented 3 years ago

Typings are available for all packages now. Closing