1
- // Query TypeMap
2
- import '@sanity/client'
3
-
4
1
/**
5
2
* ---------------------------------------------------------------------------------
6
3
* This file has been generated by Sanity TypeGen.
@@ -17,175 +14,161 @@ import '@sanity/client'
17
14
18
15
// Source: schema.json
19
16
export type SanityImagePaletteSwatch = {
20
- _type : ' sanity.imagePaletteSwatch'
21
- background ?: string
22
- foreground ?: string
23
- population ?: number
24
- title ?: string
25
- }
17
+ _type : " sanity.imagePaletteSwatch" ;
18
+ background ?: string ;
19
+ foreground ?: string ;
20
+ population ?: number ;
21
+ title ?: string ;
22
+ } ;
26
23
27
24
export type SanityImagePalette = {
28
- _type : ' sanity.imagePalette'
29
- darkMuted ?: SanityImagePaletteSwatch
30
- lightVibrant ?: SanityImagePaletteSwatch
31
- darkVibrant ?: SanityImagePaletteSwatch
32
- vibrant ?: SanityImagePaletteSwatch
33
- dominant ?: SanityImagePaletteSwatch
34
- lightMuted ?: SanityImagePaletteSwatch
35
- muted ?: SanityImagePaletteSwatch
36
- }
25
+ _type : " sanity.imagePalette" ;
26
+ darkMuted ?: SanityImagePaletteSwatch ;
27
+ lightVibrant ?: SanityImagePaletteSwatch ;
28
+ darkVibrant ?: SanityImagePaletteSwatch ;
29
+ vibrant ?: SanityImagePaletteSwatch ;
30
+ dominant ?: SanityImagePaletteSwatch ;
31
+ lightMuted ?: SanityImagePaletteSwatch ;
32
+ muted ?: SanityImagePaletteSwatch ;
33
+ } ;
37
34
38
35
export type SanityImageDimensions = {
39
- _type : ' sanity.imageDimensions'
40
- height ?: number
41
- width ?: number
42
- aspectRatio ?: number
43
- }
36
+ _type : " sanity.imageDimensions" ;
37
+ height ?: number ;
38
+ width ?: number ;
39
+ aspectRatio ?: number ;
40
+ } ;
44
41
45
42
export type SanityImageHotspot = {
46
- _type : ' sanity.imageHotspot'
47
- x ?: number
48
- y ?: number
49
- height ?: number
50
- width ?: number
51
- }
43
+ _type : " sanity.imageHotspot" ;
44
+ x ?: number ;
45
+ y ?: number ;
46
+ height ?: number ;
47
+ width ?: number ;
48
+ } ;
52
49
53
50
export type SanityImageCrop = {
54
- _type : ' sanity.imageCrop'
55
- top ?: number
56
- bottom ?: number
57
- left ?: number
58
- right ?: number
59
- }
51
+ _type : " sanity.imageCrop" ;
52
+ top ?: number ;
53
+ bottom ?: number ;
54
+ left ?: number ;
55
+ right ?: number ;
56
+ } ;
60
57
61
58
export type SanityFileAsset = {
62
- _id : string
63
- _type : ' sanity.fileAsset'
64
- _createdAt : string
65
- _updatedAt : string
66
- _rev : string
67
- originalFilename ?: string
68
- label ?: string
69
- title ?: string
70
- description ?: string
71
- altText ?: string
72
- sha1hash ?: string
73
- extension ?: string
74
- mimeType ?: string
75
- size ?: number
76
- assetId ?: string
77
- uploadId ?: string
78
- path ?: string
79
- url ?: string
80
- source ?: SanityAssetSourceData
81
- }
59
+ _id : string ;
60
+ _type : " sanity.fileAsset" ;
61
+ _createdAt : string ;
62
+ _updatedAt : string ;
63
+ _rev : string ;
64
+ originalFilename ?: string ;
65
+ label ?: string ;
66
+ title ?: string ;
67
+ description ?: string ;
68
+ altText ?: string ;
69
+ sha1hash ?: string ;
70
+ extension ?: string ;
71
+ mimeType ?: string ;
72
+ size ?: number ;
73
+ assetId ?: string ;
74
+ uploadId ?: string ;
75
+ path ?: string ;
76
+ url ?: string ;
77
+ source ?: SanityAssetSourceData ;
78
+ } ;
82
79
83
80
export type SanityImageAsset = {
84
- _id : string
85
- _type : ' sanity.imageAsset'
86
- _createdAt : string
87
- _updatedAt : string
88
- _rev : string
89
- originalFilename ?: string
90
- label ?: string
91
- title ?: string
92
- description ?: string
93
- altText ?: string
94
- sha1hash ?: string
95
- extension ?: string
96
- mimeType ?: string
97
- size ?: number
98
- assetId ?: string
99
- uploadId ?: string
100
- path ?: string
101
- url ?: string
102
- metadata ?: SanityImageMetadata
103
- source ?: SanityAssetSourceData
104
- }
81
+ _id : string ;
82
+ _type : " sanity.imageAsset" ;
83
+ _createdAt : string ;
84
+ _updatedAt : string ;
85
+ _rev : string ;
86
+ originalFilename ?: string ;
87
+ label ?: string ;
88
+ title ?: string ;
89
+ description ?: string ;
90
+ altText ?: string ;
91
+ sha1hash ?: string ;
92
+ extension ?: string ;
93
+ mimeType ?: string ;
94
+ size ?: number ;
95
+ assetId ?: string ;
96
+ uploadId ?: string ;
97
+ path ?: string ;
98
+ url ?: string ;
99
+ metadata ?: SanityImageMetadata ;
100
+ source ?: SanityAssetSourceData ;
101
+ } ;
105
102
106
103
export type SanityImageMetadata = {
107
- _type : ' sanity.imageMetadata'
108
- location ?: Geopoint
109
- dimensions ?: SanityImageDimensions
110
- palette ?: SanityImagePalette
111
- lqip ?: string
112
- blurHash ?: string
113
- hasAlpha ?: boolean
114
- isOpaque ?: boolean
115
- }
104
+ _type : " sanity.imageMetadata" ;
105
+ location ?: Geopoint ;
106
+ dimensions ?: SanityImageDimensions ;
107
+ palette ?: SanityImagePalette ;
108
+ lqip ?: string ;
109
+ blurHash ?: string ;
110
+ hasAlpha ?: boolean ;
111
+ isOpaque ?: boolean ;
112
+ } ;
116
113
117
114
export type Geopoint = {
118
- _type : ' geopoint'
119
- lat ?: number
120
- lng ?: number
121
- alt ?: number
122
- }
115
+ _type : " geopoint" ;
116
+ lat ?: number ;
117
+ lng ?: number ;
118
+ alt ?: number ;
119
+ } ;
123
120
124
121
export type SanityAssetSourceData = {
125
- _type : ' sanity.assetSourceData'
126
- name ?: string
127
- id ?: string
128
- url ?: string
129
- }
122
+ _type : " sanity.assetSourceData" ;
123
+ name ?: string ;
124
+ id ?: string ;
125
+ url ?: string ;
126
+ } ;
130
127
131
128
export type Demo = {
132
- _id : string
133
- _type : ' demo'
134
- _createdAt : string
135
- _updatedAt : string
136
- _rev : string
137
- title ?: string
138
- slug ?: Slug
139
- url ?: string
140
- }
129
+ _id : string ;
130
+ _type : " demo" ;
131
+ _createdAt : string ;
132
+ _updatedAt : string ;
133
+ _rev : string ;
134
+ title ?: string ;
135
+ slug ?: Slug ;
136
+ url ?: string ;
137
+ } ;
141
138
142
139
export type Slug = {
143
- _type : ' slug'
144
- current ?: string
145
- source ?: string
146
- }
140
+ _type : " slug" ;
141
+ current ?: string ;
142
+ source ?: string ;
143
+ } ;
147
144
148
145
export type Theme = {
149
- _id : string
150
- _type : 'theme'
151
- _createdAt : string
152
- _updatedAt : string
153
- _rev : string
154
- background ?: string
155
- text ?: string
156
- }
157
-
158
- export type AllSanitySchemaTypes =
159
- | SanityImagePaletteSwatch
160
- | SanityImagePalette
161
- | SanityImageDimensions
162
- | SanityImageHotspot
163
- | SanityImageCrop
164
- | SanityFileAsset
165
- | SanityImageAsset
166
- | SanityImageMetadata
167
- | Geopoint
168
- | SanityAssetSourceData
169
- | Demo
170
- | Slug
171
- | Theme
172
- export declare const internalGroqTypeReferenceTo : unique symbol
146
+ _id : string ;
147
+ _type : "theme" ;
148
+ _createdAt : string ;
149
+ _updatedAt : string ;
150
+ _rev : string ;
151
+ background ?: string ;
152
+ text ?: string ;
153
+ } ;
154
+
155
+ export type AllSanitySchemaTypes = SanityImagePaletteSwatch | SanityImagePalette | SanityImageDimensions | SanityImageHotspot | SanityImageCrop | SanityFileAsset | SanityImageAsset | SanityImageMetadata | Geopoint | SanityAssetSourceData | Demo | Slug | Theme ;
156
+ export declare const internalGroqTypeReferenceTo : unique symbol ;
173
157
// Source: ./api/random-color-theme.ts
174
158
// Variable: THEME_QUERY
175
159
// Query: *[_id == "theme"][0]{background,text}
176
- export type THEME_QUERYResult =
177
- | {
178
- background : null
179
- text : null
180
- }
181
- | {
182
- background : string | null
183
- text : string | null
184
- }
185
- | null
160
+ export type THEME_QUERYResult = {
161
+ background : null ;
162
+ text : null ;
163
+ } | {
164
+ background : string | null ;
165
+ text : string | null ;
166
+ } | null ;
186
167
187
- declare module '@sanity/client' {
168
+ // Query TypeMap
169
+ import "@sanity/client" ;
170
+ declare module "@sanity/client" {
188
171
interface SanityQueries {
189
- ' *[_id == "theme"][0]{background,text}' : THEME_QUERYResult
172
+ " *[_id == \ "theme\ "][0]{background,text}" : THEME_QUERYResult ;
190
173
}
191
174
}
0 commit comments