forked from NdoleStudio/httpsms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt-shims.d.ts
More file actions
40 lines (33 loc) · 988 Bytes
/
Copy pathnuxt-shims.d.ts
File metadata and controls
40 lines (33 loc) · 988 Bytes
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
/**
* Type declarations for Nuxt auto-imports.
* These are normally generated in .nuxt/ by `nuxt prepare` but are provided
* here so that external static analysis tools (e.g. Codacy) can resolve types
* without running the Nuxt build pipeline.
*/
import type { $Fetch } from 'ofetch'
import type { App } from 'vue'
declare global {
// Nuxt composables
function useRuntimeConfig(): {
public: Record<string, string>
[key: string]: unknown
}
// Nuxt fetch utility
const $fetch: $Fetch
// Nuxt plugin helper
function defineNuxtPlugin(
plugin: (nuxtApp: { vueApp: App }) => Record<string, unknown> | undefined,
): unknown
// Nuxt route middleware helper
function defineNuxtRouteMiddleware(
middleware: (to: {
path: string
query?: Record<string, string>
}) => unknown,
): unknown
// Nuxt navigation
function navigateTo(
to: string | { path: string; query?: Record<string, string | undefined> },
): unknown
}
export {}