fix(types): add onNuxtLoaded and onNuxtReady types (#9510)

closes #9447
This commit is contained in:
Daniel Roe 2021-07-02 14:37:19 +01:00 committed by GitHub
parent 20f481f6f8
commit aa5d05f8b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }
} }