We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<script lang="ts"> import { defineComponent, ref } from 'vue'; export default (defineComponent({ setup(props, { expose }) { const publicCount = ref(0); const privateCount = ref(0); expose({ publicCount }); return { publicCount, privateCount }; }, }) as any as unknown) as never as new () => { $props: {} publicCount: number; }; </script> <template> <div>{{ publicCount }}</div> <div>{{ privateCount }}</div> </template>
<script lang="ts"> import { ref } from 'vue'; export default {} as new () => { $props: FooProps; }; </script> <script setup lang="ts"> export interface FooProps { msg: string; } defineProps<FooProps>(); const count = ref(0); </script> <template> <div>{{ count }}</div> </template>
Maybe we should allow .vue file user to customized component types export. and this should allow:
The text was updated successfully, but these errors were encountered:
a750a0b
fix: cannot unwrap parenthesized expression for export assignment
8ea5136
#1882
No branches or pull requests
Maybe we should allow .vue file user to customized component types export. and this should allow:
The text was updated successfully, but these errors were encountered: