Skip to content

Commit

Permalink
fix(sanity typegen): added support for optional reference symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
scottrippey committed Jul 15, 2024
1 parent 9f50eef commit 9964bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/groq-builder/src/types/schema-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export type ExtractTypeNames<TResultItem> = Extract<
>["_type"];

export type RefType<referenceSymbol extends symbol, TTypeName> = {
[P in referenceSymbol]: TTypeName;
[P in referenceSymbol]?: TTypeName;
};

export type ExtractRefType<TResultItem, TQueryConfig extends QueryConfig> =
Expand Down

0 comments on commit 9964bbb

Please sign in to comment.