Replies: 1 comment 4 replies
|
thanks. Can you give an example use case, where you would need the imported types? |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to use the library in a relatively big Vue project and have struggles with importing required types properly.
Import
WunderbaumNodetype is relatively easy:import type { WunderbaumNode } from "wb_node";, andwb_nodeis not a npm module, but it distinguishable from other libraries.But for
WbNodeDataorWbNodeEventTypethere's no clear way to import:import type { WbClickEventType, WbNodeData, WbNodeEventType } from "types";— what is "types"? how can I be sure that this is actually fromWunderbaumlibrary?import type { WbClickEventType, WbNodeData, WbNodeEventType } from "wunderbaum/src/types.ts";— works at this point, but fishy, as "src" is involved.Could you please provide a proper way to use library in a big project, or just re-export all types, so it would be easier to use?
All reactions