Skip to content

Commit 7a18a16

Browse files
committed
Chores
1 parent da645e9 commit 7a18a16

5 files changed

Lines changed: 45 additions & 52 deletions

File tree

.api-reports/api-report-link_batch-http.api.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,9 @@ export class BaseBatchHttpLink extends ApolloLink {
2121
export namespace BatchHttpLink {
2222
export interface ContextOptions extends HttpLink.ContextOptions {
2323
}
24-
// (undocumented)
25-
export namespace DocumentationTypes {
26-
export interface Options {
27-
batchDebounce?: boolean;
28-
batchInterval?: number;
29-
batchKey?: (operation: ApolloLink.Operation) => string;
30-
batchMax?: number;
31-
credentials?: string;
32-
fetch?: typeof fetch;
33-
fetchOptions?: any;
34-
headers?: Record<string, string>;
35-
includeExtensions?: boolean;
36-
includeUnusedVariables?: boolean;
37-
preserveHeaderCase?: boolean;
38-
print?: HttpLink.Printer;
39-
uri?: string | HttpLink.UriFunction;
40-
}
24+
export interface Options extends BatchLink.Shared.Options, HttpLink.Shared.Options {
25+
batchMax?: number;
4126
}
42-
export type Options = Pick<BatchLink.Options, "batchMax" | "batchDebounce" | "batchInterval" | "batchKey"> & Omit<HttpLink.Options, "useGETForQueries">;
4327
}
4428

4529
// @public

.api-reports/api-report-link_batch.api.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,19 @@ export type BatchHandler = (operations: ApolloLink.Operation[], forward: ApolloL
2121
// @public (undocumented)
2222
export namespace BatchLink {
2323
// (undocumented)
24-
export namespace DocumentationTypes {
25-
// (undocumented)
24+
export interface Options extends Shared.Options {
25+
batchHandler?: BatchHandler;
26+
batchMax?: number;
27+
}
28+
// (undocumented)
29+
export namespace Shared {
2630
export interface Options {
31+
batchDebounce?: boolean;
32+
batchInterval?: number;
33+
batchKey?: (operation: ApolloLink.Operation) => string;
2734
batchMax?: number;
2835
}
2936
}
30-
// (undocumented)
31-
export interface Options {
32-
batchDebounce?: boolean;
33-
batchHandler?: BatchHandler;
34-
batchInterval?: number;
35-
batchKey?: (operation: ApolloLink.Operation) => string;
36-
batchMax?: number;
37-
}
3837
}
3938

4039
// @public (undocumented)

.api-reports/api-report-link_http.api.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,26 @@ export namespace HttpLink {
8888
includeQuery?: boolean;
8989
preserveHeaderCase?: boolean;
9090
}
91-
export interface Options {
92-
credentials?: string;
93-
fetch?: typeof fetch;
94-
fetchOptions?: any;
95-
headers?: Record<string, string>;
96-
includeExtensions?: boolean;
97-
includeUnusedVariables?: boolean;
98-
preserveHeaderCase?: boolean;
99-
print?: HttpLink.Printer;
100-
uri?: string | HttpLink.UriFunction;
91+
export interface Options extends Shared.Options {
10192
useGETForQueries?: boolean;
10293
}
10394
// (undocumented)
10495
export type Printer = (node: ASTNode, originalPrint: typeof print_2) => string;
10596
// (undocumented)
97+
export namespace Shared {
98+
export interface Options {
99+
credentials?: string;
100+
fetch?: typeof fetch;
101+
fetchOptions?: RequestInit;
102+
headers?: Record<string, string>;
103+
includeExtensions?: boolean;
104+
includeUnusedVariables?: boolean;
105+
preserveHeaderCase?: boolean;
106+
print?: HttpLink.Printer;
107+
uri?: string | HttpLink.UriFunction;
108+
}
109+
}
110+
// (undocumented)
106111
export type UriFunction = (operation: ApolloLink.Operation) => string;
107112
}
108113

.api-reports/api-report.api.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,23 +1367,28 @@ export namespace HttpLink {
13671367
includeQuery?: boolean;
13681368
preserveHeaderCase?: boolean;
13691369
}
1370-
export interface Options {
1371-
credentials?: string;
1372-
fetch?: typeof fetch;
1373-
fetchOptions?: any;
1374-
headers?: Record<string, string>;
1375-
includeExtensions?: boolean;
1376-
includeUnusedVariables?: boolean;
1377-
preserveHeaderCase?: boolean;
1378-
print?: HttpLink.Printer;
1379-
uri?: string | HttpLink.UriFunction;
1370+
export interface Options extends Shared.Options {
13801371
useGETForQueries?: boolean;
13811372
}
13821373
// Warning: (ae-forgotten-export) The symbol "print_2" needs to be exported by the entry point index.d.ts
13831374
//
13841375
// (undocumented)
13851376
export type Printer = (node: ASTNode, originalPrint: typeof print_2) => string;
13861377
// (undocumented)
1378+
export namespace Shared {
1379+
export interface Options {
1380+
credentials?: string;
1381+
fetch?: typeof fetch;
1382+
fetchOptions?: RequestInit;
1383+
headers?: Record<string, string>;
1384+
includeExtensions?: boolean;
1385+
includeUnusedVariables?: boolean;
1386+
preserveHeaderCase?: boolean;
1387+
print?: HttpLink.Printer;
1388+
uri?: string | HttpLink.UriFunction;
1389+
}
1390+
}
1391+
// (undocumented)
13871392
export type UriFunction = (operation: ApolloLink.Operation) => string;
13881393
}
13891394

.size-limits.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (CJS)": 43862,
3-
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production) (CJS)": 38777,
4-
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\"": 33487,
5-
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production)": 27626
2+
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (CJS)": 43890,
3+
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production) (CJS)": 38731,
4+
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\"": 33462,
5+
"import { ApolloClient, InMemoryCache, HttpLink } from \"@apollo/client\" (production)": 27595
66
}

0 commit comments

Comments
 (0)