mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
fix(types): add onNuxtLoaded
and onNuxtReady
types (#9510)
closes #9447
This commit is contained in:
parent
20f481f6f8
commit
aa5d05f8b9
2
packages/types/app/index.d.ts
vendored
2
packages/types/app/index.d.ts
vendored
@ -176,6 +176,8 @@ export interface NuxtApp extends Vue {
|
|||||||
// window.$nuxt
|
// window.$nuxt
|
||||||
declare global {
|
declare global {
|
||||||
interface Window {
|
interface Window {
|
||||||
|
onNuxtLoaded: (cb: (app: NuxtApp) => void) => void
|
||||||
|
onNuxtReady: (cb: (app: NuxtApp) => void) => void
|
||||||
$nuxt: NuxtApp
|
$nuxt: NuxtApp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user