We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f642461 commit 08deda6Copy full SHA for 08deda6
packages/core/src/index.ts
@@ -21,6 +21,6 @@ export type ResultOf<T> = T extends TypedDocumentNode<infer ResultType, infer Va
21
* Helper for extracting a TypeScript type for operation variables from a TypedDocumentNode.
22
* @example
23
* const myQuery = { ... }; // TypedDocumentNode<R, V>
24
- * type VariablesType = ResultOf<typeof myQuery>; // Now it's V
+ * type VariablesType = VariablesOf<typeof myQuery>; // Now it's V
25
*/
26
export type VariablesOf<T> = T extends TypedDocumentNode<infer ResultType, infer VariablesType> ? VariablesType : never;
0 commit comments