fix(types): defineComponent extension overwrite vue types in template

This commit is contained in:
Rafal Chlodnicki 2023-08-24 22:33:31 +02:00
parent 5444269c24
commit 283e465f06

View File

@ -23,7 +23,8 @@ type DefaultMethods<V> = { [key: string]: (this: V, ...args: any[]) => any }
type DefaultComputed = { [key: string]: any }
type DefaultAsyncData = ((this: never, context: Context) => Promise<object | void> | object | void)
declare module 'vue/types' {
// Extend built-in defineComponent with variants that support inferring asyncData return value.
declare module 'vue/types/v3-define-component' {
/**
* overload 1: object format with no props
*/