undici-types 6.19.1 → 6.19.2
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/formdata.d.ts +1 -1
- package/index.d.ts +2 -6
- package/interceptors.d.ts +11 -7
- package/package.json +1 -1
- package/retry-agent.d.ts +0 -3
- package/webidl.d.ts +1 -3
package/formdata.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
|
|
4
4
|
import { File } from './file'
|
|
5
|
-
import {
|
|
5
|
+
import { SpecIterableIterator } from './fetch'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A `string` or `File` that represents a single value from a set of `FormData` key-value pairs.
|
package/index.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ declare namespace Undici {
|
|
|
42
42
|
var RedirectHandler: typeof import ('./handlers').RedirectHandler
|
|
43
43
|
var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
|
|
44
44
|
var RetryHandler: typeof import ('./retry-handler').default
|
|
45
|
-
var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor
|
|
45
|
+
var createRedirectInterceptor: typeof import ('./interceptors').default.createRedirectInterceptor
|
|
46
46
|
var BalancedPool: typeof import('./balanced-pool').default;
|
|
47
47
|
var Client: typeof import('./client').default;
|
|
48
48
|
var buildConnector: typeof import('./connector').default;
|
|
@@ -67,9 +67,5 @@ declare namespace Undici {
|
|
|
67
67
|
var File: typeof import('./file').File;
|
|
68
68
|
var FileReader: typeof import('./filereader').FileReader;
|
|
69
69
|
var caches: typeof import('./cache').caches;
|
|
70
|
-
var interceptors:
|
|
71
|
-
dump: typeof import('./interceptors').dump;
|
|
72
|
-
retry: typeof import('./interceptors').retry;
|
|
73
|
-
redirect: typeof import('./interceptors').redirect;
|
|
74
|
-
}
|
|
70
|
+
var interceptors: typeof import('./interceptors').default;
|
|
75
71
|
}
|
package/interceptors.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import Dispatcher from "./dispatcher";
|
|
2
2
|
import RetryHandler from "./retry-handler";
|
|
3
3
|
|
|
4
|
-
export
|
|
5
|
-
export type RetryInterceptorOpts = RetryHandler.RetryOptions
|
|
6
|
-
export type RedirectInterceptorOpts = { maxRedirections?: number }
|
|
4
|
+
export default Interceptors;
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
6
|
+
declare namespace Interceptors {
|
|
7
|
+
export type DumpInterceptorOpts = { maxSize?: number }
|
|
8
|
+
export type RetryInterceptorOpts = RetryHandler.RetryOptions
|
|
9
|
+
export type RedirectInterceptorOpts = { maxRedirections?: number }
|
|
10
|
+
|
|
11
|
+
export function createRedirectInterceptor(opts: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
12
|
+
export function dump(opts?: DumpInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
13
|
+
export function retry(opts?: RetryInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
14
|
+
export function redirect(opts?: RedirectInterceptorOpts): Dispatcher.DispatcherComposeInterceptor
|
|
15
|
+
}
|
package/package.json
CHANGED
package/retry-agent.d.ts
CHANGED