-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
augments.d.ts
46 lines (41 loc) · 1.07 KB
/
augments.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import type { UseHeadInput } from '@unhead/vue'
import type { LogObject } from 'consola'
import type { NuxtApp, useNuxtApp } from '../nuxt'
interface NuxtStaticBuildFlags {
browser: boolean
client: boolean
dev: boolean
server: boolean
test: boolean
}
declare global {
namespace NodeJS {
interface Process extends NuxtStaticBuildFlags {}
}
interface ImportMeta extends NuxtStaticBuildFlags {}
interface Window {
__NUXT_LOGS__?: LogObject[]
__NUXT__?: Record<string, any>
useNuxtApp?: typeof useNuxtApp
}
}
declare module 'vue' {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface App<HostElement> {
$nuxt: NuxtApp
}
interface ComponentCustomProperties {
$nuxt: NuxtApp
}
interface ComponentInternalInstance {
_nuxtOnBeforeMountCbs: Function[]
_nuxtIdIndex?: Record<string, number>
}
interface ComponentCustomOptions {
/**
* Available exclusively for `defineNuxtComponent`.
* It will not be executed when using `defineComponent`.
*/
head?(nuxtApp: NuxtApp): UseHeadInput
}
}