Skip to content
New issue

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

Props of type any becomes unknown in template #713

Closed
jods4 opened this issue Nov 19, 2021 · 1 comment
Closed

Props of type any becomes unknown in template #713

jods4 opened this issue Nov 19, 2021 · 1 comment
Labels

Comments

@jods4
Copy link

jods4 commented Nov 19, 2021

See screenshot.
In script-setup I define a prop of type any but inside the template it is considered as unknown
image

@johnsoncodehk
Copy link
Member

This is DefineComponent types problem, you can see

const Foo = defineComponent({
	props: { foo: Object as PropType<any> }
});
(new Foo()).foo; // <-- unknown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants