How to fix ts check? #13992
Unanswered
boobam22
asked this question in
Help/Questions
Replies: 1 comment
-
Use https://github.com/vuejs/language-tools/tree/master/packages/component-type-helpers. npm: vue-component-type-helpers import type { ComponentProps } from 'vue-component-type-helpers';
import MyComp from './MyComp.vue';
type MyCompProps = ComponentProps<typeof MyComp>; |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
demo
createVNode
seems to acceptRef
as props, even default props likeclass
, just like using component intemplate
.but ts raise error when use
Ref
Beta Was this translation helpful? Give feedback.
All reactions