Skip to content

Commit 08deda6

Browse files
authored
Fix example code in comment (#135)
1 parent f642461 commit 08deda6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ export type ResultOf<T> = T extends TypedDocumentNode<infer ResultType, infer Va
2121
* Helper for extracting a TypeScript type for operation variables from a TypedDocumentNode.
2222
* @example
2323
* const myQuery = { ... }; // TypedDocumentNode<R, V>
24-
* type VariablesType = ResultOf<typeof myQuery>; // Now it's V
24+
* type VariablesType = VariablesOf<typeof myQuery>; // Now it's V
2525
*/
2626
export type VariablesOf<T> = T extends TypedDocumentNode<infer ResultType, infer VariablesType> ? VariablesType : never;

0 commit comments

Comments
 (0)