-
-
Notifications
You must be signed in to change notification settings - Fork 471
Closed
Labels
Description
input
// .js
import { defineComponent } from "vue";
export const Foo = defineComponent({
props: {
foo: String
}
})
output
export const Comp: import('vue').DefineComponent<
{
foo: StringConstructor;
},
any, // should be unknown
any, // should be unknown
{},
{},
import('vue').ComponentOptionsMixin,
import('vue').ComponentOptionsMixin,
{},
string,
import('vue').PublicProps,
Readonly<
import('vue').ExtractPropTypes<{
foo: StringConstructor;
}>
>,
{},
{}
>;
using any would broke the type infer.
vuejs/core@6aa2256
do we have any craft except migrating to typescript for preventing this, if this is a tsc problem