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

Subsequent property declarations must have the same type: index.d.ts contains duplicated DragOptions interface

Open rrr3da opened this issue 5 years ago • 3 comments
trafficstars

Hi David, I included this library via npm in my typescript Vue project.

During build time it throws an error because of an error in the library definition file:

Subsequent property declarations must have the same type. Property 'underflow' must be of type 'string | undefined', but here has type '"left" | "right" | "center" | "bottom" | "top" | (string & {}) | undefined'.

This is caused by a duplicate definition for the DragOptions interface, which both contains the same field "underflow", but of two different types. Code line 1 and code line 2 are conflicting with each other

Regards

rrr3da avatar Jun 10 '20 16:06 rrr3da

@rrr3da

I use 4.11.2 to avoid this issue, and waiting for the fix.

explooosion avatar Jun 11 '20 01:06 explooosion

Thank you @explooosion, The workaround works as you suggested.

Am I supposed to keep this issue opened for a correct bug tracking or what?

rrr3da avatar Jun 11 '20 06:06 rrr3da

I believe that if #242 is merged this will be fixed.

mcdenhoed avatar Jun 24 '20 11:06 mcdenhoed