DropEvent not exported with other event from @interactjs/types
See original GitHub issueExpected behavior
To be able to:
import { DropEvent } from '@interactjs/types/index';
Actual behavior
I have to do this:
import { DropEvent } from '@interactjs/actions/drop/DropEvent'
and install:
@interactjs/actions
or else I get a compilation error in my Angular app.
ERROR in The target entry-point "@tft/interact" has missing dependencies: - @interactjs/actions/drop/DropEvent
System configuration
interact.js version: 1.9.18 Browser name and version: chrome latest Operating System: Windows
Additional Info
I have wrapped your library in an angular wrapper. Right now consumers of the library have to install interactjs
and @interactjs/actions
or else they will get error:
ERROR in The target entry-point "@tft/interact" has missing dependencies: - @interactjs/actions/drop/DropEvent
Is there a preferred way to import types from interact? It seems like the import paths have changed a few time recently.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
Here’s that video I mentioned early about helping typescript tree shake unused code.
Neat 😄