@graphql-typed-document-node/core
Advanced tools
Comparing version 3.2.0-alpha-20230309104331-975d9d2 to 3.2.0-alpha-20230310112649-bd39199
{ | ||
"name": "@graphql-typed-document-node/core", | ||
"version": "3.2.0-alpha-20230309104331-975d9d2", | ||
"version": "3.2.0-alpha-20230310112649-bd39199", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" |
@@ -18,3 +18,3 @@ import type { DocumentNode } from "graphql"; | ||
/** | ||
* Helper for extracting a TypeScript type for operation result from a TypedDocumentNode. | ||
* Helper for extracting a TypeScript type for operation result from a TypedDocumentNode and TypedDocumentString. | ||
* @example | ||
@@ -24,5 +24,5 @@ * const myQuery = { ... }; // TypedDocumentNode<R, V> | ||
*/ | ||
export type ResultOf<T> = T extends TypedDocumentNode<infer ResultType, infer VariablesType> ? ResultType : never; | ||
export type ResultOf<T> = T extends DocumentTypeDecoration<infer ResultType, infer VariablesType> ? ResultType : never; | ||
/** | ||
* Helper for extracting a TypeScript type for operation variables from a TypedDocumentNode. | ||
* Helper for extracting a TypeScript type for operation variables from a TypedDocumentNode and TypedDocumentString. | ||
* @example | ||
@@ -32,2 +32,2 @@ * const myQuery = { ... }; // TypedDocumentNode<R, V> | ||
*/ | ||
export type VariablesOf<T> = T extends TypedDocumentNode<infer ResultType, infer VariablesType> ? VariablesType : never; | ||
export type VariablesOf<T> = T extends DocumentTypeDecoration<infer ResultType, infer VariablesType> ? VariablesType : never; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3097