-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathtypes.d.ts
More file actions
19 lines (16 loc) · 638 Bytes
/
types.d.ts
File metadata and controls
19 lines (16 loc) · 638 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// runtime types are not working for some reason
declare module '#app' {
interface NuxtApp {
_scripts: Record<string, import('#nuxt-scripts/types').NuxtDevToolsScriptInstance>
$scripts: Record<string, import('#nuxt-scripts/types').UseScriptContext<any> | undefined>
}
interface RuntimeNuxtHooks {
'scripts:updated': (ctx: { scripts: Record<string, import('#nuxt-scripts/types').NuxtDevToolsScriptInstance> }) => void | Promise<void>
}
}
declare module '@nuxt/schema' {
interface NuxtHooks {
'scripts:registry': (registry: import('./src/runtime/types').RegistryScripts) => void | Promise<void>
}
}
export {}