feat: Support generic typed template slots for RFC 436#1987
feat: Support generic typed template slots for RFC 436#1987johnsoncodehk merged 3 commits intomasterfrom
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
DefineComponentto functional component.For following SFC code:
Output type:
vue-component-metatests is broken because we not yet implement type extract for functional component invue-component-meta.