pixi-ease icon indicating copy to clipboard operation
pixi-ease copied to clipboard

Type errors in EaseParams

Open ZacharieMenetrier opened this issue 6 years ago • 1 comments

Hello David,

I love your work and your pixi libraries are just awesome ! I found some errors just by opening your index.d.ts in pixi-ease.

ERROR in node_modules/pixi-ease/@types/index.d.ts:17:6 - error TS2411: Property 'position' of type 'Point | DisplayObject' is not assignable to string index type 'number'.

17      position?: PIXI.DisplayObject | PIXI.Point
        ~~~~~~~~
node_modules/pixi-ease/@types/index.d.ts:25:6 - error TS2411: Property 'face' of type 'Point | DisplayObject' is not assignable to string index type 'number'.

25      face?: PIXI.DisplayObject | PIXI.Point
        ~~~~
node_modules/pixi-ease/@types/index.d.ts:29:6 - error TS2411: Property 'tint' of type 'number | number[]' is not assignable to string index type 'number'.

29      tint?: number | number[]
        ~~~~
node_modules/pixi-ease/@types/index.d.ts:30:6 - error TS2411: Property 'blend' of type 'number | number[]' is not assignable to string index type 'number'.

30      blend?: number | number[]

This prevent me from using the production build inside the angular application I am working on. I am still a beginner concerning typescript so I have no clue about the cause of this error and this may be totally due to some local configurations.

Any thoughts about this ?

ZacharieMenetrier avatar Oct 11 '19 08:10 ZacharieMenetrier

yup, these are typescript errors. i'm not very good at typescript since I don't use it that often, but i think i fixed the problem in v2.4.2. let me know if you have any other problems!

davidfig avatar Oct 23 '19 04:10 davidfig