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
feat: Support generic typed template slots for RFC 436 #1987
Conversation
6db4beb
to
5a086a4
Compare
Updated to 1.0.4 and the thing works PERFECTLY. Generic list components, multiselects etc. - all will be cleaner now, more safe. This is lovely. |
I noticed one issue that stems from this I believe. In the following code, 'typeof BButton' is highlighted with error: const referenceRef = $ref<InstanceType<typeof BButton> | null>(null); |
@StepanMynarik You should use |
but vue has issue with this ts new feature how to deal with that? |
this works, but a bit wasteful |
Does this actually also work with |
Update codegen for script setup to change export component type from
DefineComponent
to functional component.For following SFC code:
Output type:
vue-component-meta
tests is broken because we not yet implement type extract for functional component invue-component-meta
.