Skip to content

ConnectionLine props are mistyped #457

Answered by bcakmakoglu
RiadhAdrani asked this question in Q&A
Discussion options

You must be logged in to vote

Interesting. Are you using the Volar VSCode extension for Vue?
I can see the problem if I open the example in VSCode as well (using Volar).

Looks like I need to somehow type the slot props (which I didn't know was even possible currently, so I assumed they're all typed as any 😅)

You could try this for now:

 <ConnectionLine :target-x="(props as ConnectionLineProps).targetX" />

ConnectionLineProps are an exported type of @vue-flow/core

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@RiadhAdrani
Comment options

@bcakmakoglu
Comment options

@RiadhAdrani
Comment options

@bcakmakoglu
Comment options

Answer selected by bcakmakoglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants