Skip to content

Commit

Permalink
chore(typegen): 🤖 ✨ (#20)
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 0132ed2 commit ee768b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/sanity.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,22 +171,20 @@ export type AllSanitySchemaTypes =
export declare const internalGroqTypeReferenceTo: unique symbol
// Source: ./api/random-color-theme.ts
// Variable: THEME_QUERY
// Query: *[_id == "theme"][0]{_rev,background,text}
// Query: *[_id == "theme"][0]{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]{_rev,background,text}': THEME_QUERYResult
'*[_id == "theme"][0]{background,text}': THEME_QUERYResult
}
}

0 comments on commit ee768b1

Please sign in to comment.