Izzimach/react-pixi

type definition

Opened this issue · 1 comments

capture
I config react-pixi work with typescript. But I got that issue.

I thought it because Stage in type definition ok with PIXI.DisplayObject. But Sprite is Component. then it still display in game ok like that:
capture
What should I do now? How to improve definition to work well with typescript?

I ignored it by change from PIXI.DisplayObject[] -> any in ContainerPropsType