Skip to content

Commit

Permalink
docs: add documentation to TypedDocumentNode
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Feb 13, 2024
1 parent 0b88718 commit 51e29fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/lib/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export { graphql } from '@/typegen/gql';
* @param variables - the variables for the operation
* @param fetchOptions - the options for NextJS's fetch
* @returns graphql-request's request result
* @see https://github.com/dotansimha/graphql-typed-document-node?tab=readme-ov-file#how-can-i-support-this-in-my-library
*/
export function gql<TData = any, TVariables = Record<string, any>>(
operation: TypedDocumentNode<TData, TVariables>,
Expand Down

0 comments on commit 51e29fd

Please sign in to comment.