Help: how to import a interface from vue file? #10992
Unanswered
zhaojinzhao
asked this question in
Help/Questions
Replies: 1 comment 2 replies
-
import type { ReferenceLinkProps } from './ReferenceLink.vue'; |
Beta Was this translation helpful? Give feedback.
2 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.
-
the below is my code.
ReferenceLink.vue
** index.ts **
sorry, i can't import
ReferenceLinkProps
interface fromReferenceLink.vue
now. it notice me "Cannot use namespace ReferenceLinkProps as a type."more information:
Vue Version: 3.4.21
TypeScript Version: 5.4.0
env.d.ts
Beta Was this translation helpful? Give feedback.
All reactions