mirror of https://github.com/nuxt/nuxt.git
fix(components): augment 'vue' module rather than overwriting (#305)
This commit is contained in:
parent
2abac1d78c
commit
b53d8a77ff
|
@ -33,5 +33,3 @@ declare module 'vue' {
|
||||||
$nuxt: Nuxt
|
$nuxt: Nuxt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export {}
|
|
||||||
|
|
|
@ -5,3 +5,6 @@ declare module 'vue' {
|
||||||
}).join(',\n') %>
|
}).join(',\n') %>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// export required to turn this into a module for TS augmentation purposes
|
||||||
|
export { }
|
||||||
|
|
|
@ -7,5 +7,5 @@ declare global {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// type export required to turn this into a module for TS augmentation purposes
|
// export required to turn this into a module for TS augmentation purposes
|
||||||
export type A = {}
|
export { }
|
||||||
|
|
|
@ -21,5 +21,3 @@ declare module '#assets' {
|
||||||
export function statAsset(id: string): Promise<AssetMeta>
|
export function statAsset(id: string): Promise<AssetMeta>
|
||||||
export function getAsset<T=any>(id: string): { read: () => Promise<T>, meta: AssetMeta }
|
export function getAsset<T=any>(id: string): { read: () => Promise<T>, meta: AssetMeta }
|
||||||
}
|
}
|
||||||
|
|
||||||
export {}
|
|
||||||
|
|
Loading…
Reference in New Issue