undici-types 7.13.0 → 7.14.0
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/eventsource.d.ts +6 -1
- package/index.d.ts +4 -1
- package/package.json +1 -1
package/eventsource.d.ts
CHANGED
|
@@ -56,6 +56,11 @@ export declare const EventSource: {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
interface EventSourceInit {
|
|
59
|
-
withCredentials?: boolean
|
|
59
|
+
withCredentials?: boolean
|
|
60
|
+
// @deprecated use `node.dispatcher` instead
|
|
60
61
|
dispatcher?: Dispatcher
|
|
62
|
+
node?: {
|
|
63
|
+
dispatcher?: Dispatcher
|
|
64
|
+
reconnectionTime?: number
|
|
65
|
+
}
|
|
61
66
|
}
|
package/index.d.ts
CHANGED
|
@@ -34,7 +34,9 @@ export * from './content-type'
|
|
|
34
34
|
export * from './cache'
|
|
35
35
|
export { Interceptable } from './mock-interceptor'
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
declare function globalThisInstall (): void
|
|
38
|
+
|
|
39
|
+
export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, interceptors, MockClient, MockPool, MockAgent, SnapshotAgent, MockCallHistory, MockCallHistoryLog, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent, H2CClient, globalThisInstall as install }
|
|
38
40
|
export default Undici
|
|
39
41
|
|
|
40
42
|
declare namespace Undici {
|
|
@@ -74,4 +76,5 @@ declare namespace Undici {
|
|
|
74
76
|
MemoryCacheStore: typeof import('./cache-interceptor').default.MemoryCacheStore,
|
|
75
77
|
SqliteCacheStore: typeof import('./cache-interceptor').default.SqliteCacheStore
|
|
76
78
|
}
|
|
79
|
+
const install: typeof globalThisInstall
|
|
77
80
|
}
|