Skip to content

Commit

Permalink
improve query typesafety based on proposed change from elba-security/…
Browse files Browse the repository at this point in the history
…graphql-zeus project
  • Loading branch information
jeenkhoorn committed Oct 18, 2023
1 parent 4a309df commit a3728e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql-zeus/plugins/typedDocumentNode/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const typedGql =
operation: O,
graphqlOptions?: ThunderGraphQLOptions<SCLR>,
) =>
<Z extends ValueTypes[R]>(o: Z | ValueTypes[R], ops?: OperationOptions) => {
<Z extends ValueTypes[R]>(o: (Z & ValueTypes[R]) | ValueTypes[R], ops?: OperationOptions) => {
const str = Zeus(operation, o, {
operationOptions: ops,
scalars: graphqlOptions?.scalars,
Expand Down

0 comments on commit a3728e6

Please sign in to comment.