undici-types 5.25.3 → 5.26.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent.d.ts +1 -1
- package/client.d.ts +1 -1
- package/connector.d.ts +1 -0
- package/index.d.ts +6 -0
- package/package.json +1 -1
package/agent.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ declare class Agent extends Dispatcher{
|
|
|
17
17
|
declare namespace Agent {
|
|
18
18
|
export interface Options extends Pool.Options {
|
|
19
19
|
/** Default: `(origin, opts) => new Pool(origin, opts)`. */
|
|
20
|
-
factory?(origin: URL, opts: Object): Dispatcher;
|
|
20
|
+
factory?(origin: string | URL, opts: Object): Dispatcher;
|
|
21
21
|
/** Integer. Default: `0` */
|
|
22
22
|
maxRedirections?: number;
|
|
23
23
|
|
package/client.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare namespace Client {
|
|
|
23
23
|
export interface Options {
|
|
24
24
|
/** TODO */
|
|
25
25
|
interceptors?: OptionsInterceptors;
|
|
26
|
-
/** The maximum length of request headers in bytes. Default: `16384` (16KiB). */
|
|
26
|
+
/** The maximum length of request headers in bytes. Default: Node.js' `--max-http-header-size` or `16384` (16KiB). */
|
|
27
27
|
maxHeaderSize?: number;
|
|
28
28
|
/** The amount of time, in milliseconds, the parser will wait to receive the complete HTTP headers (Node 14 and above only). Default: `300e3` milliseconds (300s). */
|
|
29
29
|
headersTimeout?: number;
|
package/connector.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare function buildConnector (options?: buildConnector.BuildOptions): buildCo
|
|
|
6
6
|
|
|
7
7
|
declare namespace buildConnector {
|
|
8
8
|
export type BuildOptions = (ConnectionOptions | TcpNetConnectOpts | IpcNetConnectOpts) & {
|
|
9
|
+
allowH2?: boolean;
|
|
9
10
|
maxCachedSessions?: number | null;
|
|
10
11
|
socketPath?: string | null;
|
|
11
12
|
timeout?: number | null;
|
package/index.d.ts
CHANGED
|
@@ -53,5 +53,11 @@ declare namespace Undici {
|
|
|
53
53
|
var MockAgent: typeof import('./mock-agent').default;
|
|
54
54
|
var mockErrors: typeof import('./mock-errors').default;
|
|
55
55
|
var fetch: typeof import('./fetch').fetch;
|
|
56
|
+
var Headers: typeof import('./fetch').Headers;
|
|
57
|
+
var Response: typeof import('./fetch').Response;
|
|
58
|
+
var Request: typeof import('./fetch').Request;
|
|
59
|
+
var FormData: typeof import('./formdata').FormData;
|
|
60
|
+
var File: typeof import('./file').File;
|
|
61
|
+
var FileReader: typeof import('./filereader').FileReader;
|
|
56
62
|
var caches: typeof import('./cache').caches;
|
|
57
63
|
}
|