mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 06:31:27 +00:00
fix(types): defineComponent extension overwrite vue types in template
This commit is contained in:
parent
5444269c24
commit
283e465f06
3
packages/types/app/vue.d.ts
vendored
3
packages/types/app/vue.d.ts
vendored
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user