@e-mc/types 0.5.0 → 0.5.1
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/constant.d.ts +1 -1
- package/lib/http.d.ts +2 -1
- package/package.json +1 -1
package/constant.d.ts
CHANGED
package/lib/http.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LookupAddress } from 'dns';
|
|
1
2
|
import type { ClientRequest, Agent as HttpAgent, OutgoingHttpHeaders } from 'http';
|
|
2
3
|
import type { Agent as HttpsAgent } from 'https';
|
|
3
4
|
import type { ClientHttp2Stream } from 'http2';
|
|
@@ -83,4 +84,4 @@ export type HttpRequestClient = ClientRequest | ClientHttp2Stream;
|
|
|
83
84
|
export type HttpOutgoingHeaders = ObjectMap<OutgoingHttpHeaders>;
|
|
84
85
|
export type HttpProtocolVersion = 1 | 2 | 3;
|
|
85
86
|
export type InternetProtocolVersion = 0 | 4 | 6;
|
|
86
|
-
export type LookupCallback = (err: NodeJS.ErrnoException | null, address: string, family
|
|
87
|
+
export type LookupCallback = (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family?: number) => void;
|