Closed
Description
Hey,
When I use RFC 436
and type vue ref like this
<script setup lang="ts">
import { ref } from 'vue';
import HelloWorld from './components/HelloWorld.vue'
const hello = ref<InstanceType<typeof HelloWorld> | null>();
</script>
<template>
<HelloWorld ref="hello" msg="Vite + Vue" />
</template>
I get this error
Type '(__VLS_props: { msg: string;}) => Omit<JSX.Element, "props" | "children"> & Omit<{ $: ComponentInternalInstance; $data: {}; $props: Partial<{}> & Omit<...>; ... 10 more ...; $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (......' does not satisfy the constraint 'abstract new (...args: any) => any'.
Type '(__VLS_props: { msg: string; }) => Omit<Element, "props" | "children"> & Omit<{ $: ComponentInternalInstance; $data: {}; $props: Partial<{}> & Omit<...>; ... 10 more ...; $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: ...' provides no match for the signature 'new (...args: any): any'.ts(2344)
Metadata
Metadata
Assignees
Labels
No labels