@@ -188,6 +188,14 @@ export type AllSanitySchemaTypes =
188
188
| Slug
189
189
| Theme
190
190
export declare const internalGroqTypeReferenceTo : unique symbol
191
+ // Source: ./src/components/Reactions.tsx
192
+ // Variable: REACTION_QUERY
193
+ // Query: *[_type == "reaction" && _id == $id][0]{emoji,reactions}
194
+ export type REACTION_QUERYResult = {
195
+ emoji : string | null
196
+ reactions : number | null
197
+ } | null
198
+
191
199
// Source: ./src/layouts/Layout.astro
192
200
// Variable: LAYOUT_QUERY
193
201
// Query: *[_id == "theme"][0]{background,text}
@@ -213,18 +221,10 @@ export type INDEX_QUERYResult = {
213
221
} > | null
214
222
} | null
215
223
216
- // Source: ./src/sanity/queries.ts
217
- // Variable: REACTION_QUERY
218
- // Query: *[_type == "reaction" && _id == $id][0]{emoji,reactions}
219
- export type REACTION_QUERYResult = {
220
- emoji : string | null
221
- reactions : number | null
222
- } | null
223
-
224
224
declare module '@sanity/client' {
225
225
interface SanityQueries {
226
+ '*[_type == "reaction" && _id == $id][0]{emoji,reactions}' : REACTION_QUERYResult
226
227
'*[_id == "theme"][0]{background,text}' : LAYOUT_QUERYResult
227
228
'*[_type == "demo" && slug.current == $slug][0]{title,reactions[0..4]{_key,_ref}}' : INDEX_QUERYResult
228
- '*[_type == "reaction" && _id == $id][0]{emoji,reactions}' : REACTION_QUERYResult
229
229
}
230
230
}
0 commit comments