fix(types): preserve and expose original options on defineComponent return type (#5416)

fix #3796
This commit is contained in:
Zclhlmgqzc
2022-05-06 17:44:05 +08:00
committed by GitHub
parent 32e53bfd47
commit 98b821d94a
5 changed files with 242 additions and 156 deletions

View File

@@ -111,7 +111,7 @@ export function defineAsyncComponent<
)
}
return defineComponent({
return defineComponent<{}>({
name: 'AsyncComponentWrapper',
__asyncLoader: load,