-
Notifications
You must be signed in to change notification settings - Fork 35
/
index.d.ts
69 lines (64 loc) · 1.56 KB
/
index.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import type { ClientConfig, ClientPerspective, StegaConfig } from '@sanity/client'
import type {
SanityVisualEditingMode,
SanityVisualEditingRefreshHandler,
SanityVisualEditingZIndex,
} from './src/module'
import type { SanityHelper } from '#sanity-composables'
type nullish = null | undefined
declare module '#app' {
interface NuxtApp {
_sanity?: Record<string, SanityHelper>
}
}
declare module 'nuxt/schema' {
interface RuntimeConfig {
sanity: {
visualEditing:
| {
mode: SanityVisualEditingMode
previewMode:
| false
| {
enable: string
disable: string
}
previewModeId: string
proxyEndpoint: string
studioUrl: string
token: string
}
| undefined
}
}
interface PublicRuntimeConfig {
sanity: {
additionalClients: Record<string, ClientConfig>
apiVersion: string
dataset: string
disableSmartCdn: boolean
perspective: ClientPerspective
projectId: string
stega: StegaConfig
token: string
useCdn: boolean
visualEditing:
| {
mode: SanityVisualEditingMode
previewMode:
| false
| {
enable: string
disable: string
}
proxyEndpoint: string
refresh: SanityVisualEditingRefreshHandler | undefined
studioUrl: string
zIndex: SanityVisualEditingZIndex
}
| nullish
}
withCredentials: boolean
}
}
export {}