pixi-viewport
pixi-viewport copied to clipboard
Subsequent property declarations must have the same type: index.d.ts contains duplicated DragOptions interface
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
Thank you @explooosion, The workaround works as you suggested.
Am I supposed to keep this issue opened for a correct bug tracking or what?
I believe that if #242 is merged this will be fixed.