Skip to content

Commit

Permalink
moving references stuff to #199
Browse files Browse the repository at this point in the history
  • Loading branch information
saiichihashimoto committed Jul 31, 2023
1 parent 4ad17c3 commit b560fc5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/groq/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1161,10 +1161,7 @@ type Functions<TArgs extends any[], TScope extends Scope<any>> = {
references: TArgs extends (infer TElement)[]
? Extract<Exclude<TElement, []>, string[] | string> extends never
? false
: // Once we're certain there's a string or string[] argument, we can't do better
// Whether or not the ids exist in a dataset is impossible to figure out
// TODO We could check only for docs that have ReferenceValues.
boolean
: boolean
: never;
/**
* @link https://sanity-io.github.io/GROQ/GROQ-1.revision1/#global_round()
Expand Down

0 comments on commit b560fc5

Please sign in to comment.