···11+---
22+'@urql/core': patch
33+---
44+55+Add support for `graphql`’s built-in `TypedQueryDocumentNode` typings for type inference.
+8-2
packages/core/src/types.ts
···11-import type { GraphQLError, DocumentNode } from 'graphql';
11+import type { GraphQLError, DocumentNode, DefinitionNode } from 'graphql';
22import { Subscription, Source } from 'wonka';
33import { Client } from './client';
44import { CombinedError } from './utils/error';
···2626 Result = { [key: string]: any },
2727 Variables = { [key: string]: any }
2828> extends DocumentNode {
2929- /** Type to check whether `Variables` and `Result` are assignable types.
2929+ /** GraphQL.js Definition Nodes of the `DocumentNode`. */
3030+ readonly definitions: ReadonlyArray<DefinitionNode>;
3131+ /** Type to support `@graphql-typed-document-node/core`
3032 * @internal
3133 */
3234 __apiType?: (variables: Variables) => Result;
3535+ /** Type to support `TypedQueryDocumentNode` from `graphql`
3636+ * @internal
3737+ */
3838+ __ensureTypesOfVariablesAndResultMatching?: (variables: Variables) => Result;
3339}
34403541/** A list of errors on {@link ExecutionResult | ExecutionResults}.