@@ -10,7 +10,7 @@ import type { ASTNode } from 'graphql';
1010import type { DataValue } from ' @apollo/client' ;
1111import type { DirectiveNode } from ' graphql' ;
1212import type { DocumentNode } from ' graphql' ;
13- import type { ErrorLike } from ' @apollo/client' ;
13+ import { ErrorLike } from ' @apollo/client' ;
1414import type { FieldNode } from ' graphql' ;
1515import type { FormattedExecutionResult } from ' graphql' ;
1616import type { FragmentDefinitionNode } from ' graphql' ;
@@ -33,6 +33,7 @@ import type { SelectionSetNode } from 'graphql';
3333import { StrongCache } from ' @wry/caches' ;
3434import type { Subscription } from ' rxjs' ;
3535import type { Trie } from ' @wry/trie' ;
36+ import type { TypeOverrides } from ' @apollo/client' ;
3637import { WeakCache } from ' @wry/caches' ;
3738
3839// @internal @deprecated (undocumented)
@@ -77,6 +78,9 @@ export const canUseDOM: boolean;
7778// @internal @deprecated
7879export const checkDocument: (doc : DocumentNode , expectedType ? : OperationTypeNode ) => void ;
7980
81+ // @public
82+ export type ClassicSignature = SignatureStyle extends " classic" ? unknown : never ;
83+
8084// @internal @deprecated
8185export function cloneDeep<T >(value : T ): T ;
8286
@@ -375,6 +379,11 @@ export function isNonNullObject(obj: unknown): obj is Record<string | number, an
375379// @internal @deprecated (undocumented)
376380export function isPlainObject(obj : unknown ): obj is Record <string | number , any >;
377381
382+ // @public
383+ export type LazyType <T > = T & {
384+ [K in " " as never ]: LazyType <never >;
385+ };
386+
378387// @internal @deprecated (undocumented)
379388export function makeReference(id : string ): Reference ;
380389
@@ -408,6 +417,12 @@ export function omitDeep<T, K extends string>(value: T, key: K): DeepOmit<T, K>;
408417// @public (undocumented)
409418type OptionsUnion <TData , TVariables extends OperationVariables > = ApolloClient .WatchQueryOptions <TData , TVariables > | ApolloClient .QueryOptions <TData , TVariables > | ApolloClient .MutateOptions <TData , TVariables , any >;
410419
420+ // Warning: (ae-forgotten-export) The symbol "ReplaceUndefinedWithDefault" needs to be exported by the entry point index.d.ts
421+ // Warning: (ae-incompatible-release-tags) The symbol "OptionWithFallback" is marked as @public, but its signature references "RemoveIndexSignature" which is marked as @internal
422+ //
423+ // @public (undocumented)
424+ export type OptionWithFallback <Options , DefaultOptions , Key extends keyof DefaultOptions > = Key extends keyof RemoveIndexSignature <Options > ? ReplaceUndefinedWithDefault <Options [Key ], DefaultOptions [Key ]> : DefaultOptions [Key ];
425+
411426// @internal @deprecated (undocumented)
412427export interface PendingPromise <TValue > extends Promise <TValue > {
413428 // (undocumented)
@@ -463,12 +478,22 @@ export type RemoveIndexSignature<T> = {
463478// @public (undocumented)
464479export function removeMaskedFragmentSpreads(document : DocumentNode ): DocumentNode ;
465480
481+ // @public (undocumented)
482+ type ReplaceUndefinedWithDefault <Value , Default > = Value extends any ? Value extends undefined ? Default : Value : never ;
483+
466484// @internal @deprecated (undocumented)
467485export function resultKeyNameFromField(field : FieldNode ): string ;
468486
469487// @internal @deprecated (undocumented)
470488export function shouldInclude({ directives }: SelectionNode , variables ? : Record <string , any >): boolean ;
471489
490+ // @public
491+ export type SignatureStyle = TypeOverrides extends ({
492+ signatureStyle: infer S extends " modern" | " classic" ;
493+ }) ? S : ApolloClient .Options extends {
494+ defaultOptions: {};
495+ } ? " modern" : " classic" ;
496+
472497// @internal @deprecated (undocumented)
473498export function storeKeyNameFromField(field : FieldNode , variables ? : Object ): string ;
474499
@@ -492,7 +517,10 @@ export type StreamInfoTrie = Trie<{
492517export function stringifyForDisplay(value : any , space ? : number ): string ;
493518
494519// @internal @deprecated (undocumented)
495- export function toQueryResult<TData = unknown >(value : ObservableQuery .Result <TData >): ApolloClient .QueryResult <TData >;
520+ export function toQueryResult<TData = unknown >(value : ObservableQuery .Result <TData >): {
521+ data: TData | undefined ;
522+ error? : ErrorLike ;
523+ };
496524
497525// @public (undocumented)
498526type TupleToIntersection <T extends any []> = T extends [infer A ] ? A : T extends [infer A , infer B ] ? A & B : T extends [infer A , infer B , infer C ] ? A & B & C : T extends [infer A , infer B , infer C , infer D ] ? A & B & C & D : T extends [infer A , infer B , infer C , infer D , infer E ] ? A & B & C & D & E : T extends (infer U )[] ? U : any ;
0 commit comments