Skip to content

Commit

Permalink
chore(typegen): 🤖 ✨ (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: ecospark[bot] <128108030+ecospark[bot]@users.noreply.github.com>
  • Loading branch information
ecospark[bot] authored Nov 21, 2024
1 parent 6e24df3 commit 2db015c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/sanity.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,22 @@ export type AllSanitySchemaTypes =
export declare const internalGroqTypeReferenceTo: unique symbol
// Source: ./api/random-color-theme.ts
// Variable: THEME_QUERY
// Query: *[_id == "theme"][0]{background,text}
// Query: *[_id == "theme"][0]{_rev,background,text}
export type THEME_QUERYResult =
| {
_rev: string
background: null
text: null
}
| {
_rev: string
background: string | null
text: string | null
}
| null

declare module '@sanity/client' {
interface SanityQueries {
'*[_id == "theme"][0]{background,text}': THEME_QUERYResult
'*[_id == "theme"][0]{_rev,background,text}': THEME_QUERYResult
}
}

0 comments on commit 2db015c

Please sign in to comment.