Skip to content

Commit

Permalink
api-explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed May 16, 2024
1 parent 8812d38 commit f047db9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
13 changes: 10 additions & 3 deletions .api-reports/api-report-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ class Concast<T> extends Observable<T> {
// @public (undocumented)
type ConcastSourcesIterable<T> = Iterable<Source<T>>;

// @internal (undocumented)
type CovariantUnaryFunction<out Arg, out Ret> = {
fn(arg: Arg): Ret;
}["fn"];

// Warning: (ae-forgotten-export) The symbol "ApolloClient" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "NormalizedCacheObject" needs to be exported by the entry point index.d.ts
//
Expand Down Expand Up @@ -954,7 +959,7 @@ interface MockedProviderState {
}

// @public (undocumented)
export interface MockedResponse<TData = Record<string, any>, TVariables = Record<string, any>> {
export interface MockedResponse<out TData = Record<string, any>, out TVariables = Record<string, any>> {
// (undocumented)
delay?: number;
// (undocumented)
Expand Down Expand Up @@ -1552,8 +1557,10 @@ interface Resolvers {
};
}

// Warning: (ae-forgotten-export) The symbol "CovariantUnaryFunction" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export type ResultFunction<T, V = Record<string, any>> = (variables: V) => T;
export type ResultFunction<T, V = Record<string, any>> = CovariantUnaryFunction<V, T>;

// @public (undocumented)
type SafeReadonly<T> = T extends object ? Readonly<T> : T;
Expand Down Expand Up @@ -1698,7 +1705,7 @@ interface UriFunction {
}

// @public (undocumented)
type VariableMatcher<V = Record<string, any>> = (variables: V) => boolean;
type VariableMatcher<V = Record<string, any>> = CovariantUnaryFunction<V, boolean>;

// @public (undocumented)
export function wait(ms: number): Promise<void>;
Expand Down
13 changes: 10 additions & 3 deletions .api-reports/api-report-testing_core.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@ class Concast<T> extends Observable<T> {
// @public (undocumented)
type ConcastSourcesIterable<T> = Iterable<Source<T>>;

// @internal (undocumented)
type CovariantUnaryFunction<out Arg, out Ret> = {
fn(arg: Arg): Ret;
}["fn"];

// Warning: (ae-forgotten-export) The symbol "ApolloClient" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "NormalizedCacheObject" needs to be exported by the entry point index.d.ts
//
Expand Down Expand Up @@ -909,7 +914,7 @@ interface MockApolloLink extends ApolloLink {
}

// @public (undocumented)
export interface MockedResponse<TData = Record<string, any>, TVariables = Record<string, any>> {
export interface MockedResponse<out TData = Record<string, any>, out TVariables = Record<string, any>> {
// (undocumented)
delay?: number;
// (undocumented)
Expand Down Expand Up @@ -1509,8 +1514,10 @@ interface Resolvers {
};
}

// Warning: (ae-forgotten-export) The symbol "CovariantUnaryFunction" needs to be exported by the entry point index.d.ts
//
// @public (undocumented)
export type ResultFunction<T, V = Record<string, any>> = (variables: V) => T;
export type ResultFunction<T, V = Record<string, any>> = CovariantUnaryFunction<V, T>;

// @public (undocumented)
type SafeReadonly<T> = T extends object ? Readonly<T> : T;
Expand Down Expand Up @@ -1655,7 +1662,7 @@ interface UriFunction {
}

// @public (undocumented)
type VariableMatcher<V = Record<string, any>> = (variables: V) => boolean;
type VariableMatcher<V = Record<string, any>> = CovariantUnaryFunction<V, boolean>;

// @public (undocumented)
export function wait(ms: number): Promise<void>;
Expand Down
2 changes: 1 addition & 1 deletion .size-limits.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"dist/apollo-client.min.cjs": 39573,
"dist/apollo-client.min.cjs": 39574,
"import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32821
}
1 change: 1 addition & 0 deletions src/testing/core/mocking/mockLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
checkDocument,
} from "../../../utilities/index.js";

/** @internal */
type CovariantUnaryFunction<out Arg, out Ret> = { fn(arg: Arg): Ret }["fn"];

export type ResultFunction<T, V = Record<string, any>> = CovariantUnaryFunction<
Expand Down

0 comments on commit f047db9

Please sign in to comment.