How can I export some interface from script section of component #9924
Unanswered
Gennady77
asked this question in
Help/Questions
Replies: 1 comment
-
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.
-
There is a place in the documentation where it says that i can declare named exports in normal script of component.
`
<script lang="ts"> export interface IconProps { glyph: { id: string; viewBox: string; }; } </script>`
But actually id doesn't work. If I try to export some interface then I got error "Element is not exported" in the place where I import that interface.
`
<script lang="ts"> import { IconProps } from '@/components/Icon.vue'; export interface ButtonIconProps extends IconProps {} </script>`
Beta Was this translation helpful? Give feedback.
All reactions