@types/node
Advanced tools
Comparing version 18.18.6 to 18.18.8
@@ -323,2 +323,60 @@ // Declare "static" methods in Error | ||
} | ||
namespace fetch { | ||
type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request; | ||
type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response; | ||
type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData; | ||
type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers; | ||
type _RequestInit = typeof globalThis extends { onmessage: any } ? {} | ||
: import("undici-types").RequestInit; | ||
type Request = globalThis.Request; | ||
type Response = globalThis.Response; | ||
type Headers = globalThis.Headers; | ||
type FormData = globalThis.FormData; | ||
type RequestInit = globalThis.RequestInit; | ||
type RequestInfo = import("undici-types").RequestInfo; | ||
type HeadersInit = import("undici-types").HeadersInit; | ||
type BodyInit = import("undici-types").BodyInit; | ||
type RequestRedirect = import("undici-types").RequestRedirect; | ||
type RequestCredentials = import("undici-types").RequestCredentials; | ||
type RequestMode = import("undici-types").RequestMode; | ||
type ReferrerPolicy = import("undici-types").ReferrerPolicy; | ||
type Dispatcher = import("undici-types").Dispatcher; | ||
type RequestDuplex = import("undici-types").RequestDuplex; | ||
} | ||
} | ||
interface RequestInit extends NodeJS.fetch._RequestInit {} | ||
declare function fetch( | ||
input: NodeJS.fetch.RequestInfo, | ||
init?: RequestInit, | ||
): Promise<Response>; | ||
interface Request extends NodeJS.fetch._Request {} | ||
declare var Request: typeof globalThis extends { | ||
onmessage: any; | ||
Request: infer T; | ||
} ? T | ||
: typeof import("undici-types").Request; | ||
interface Response extends NodeJS.fetch._Response {} | ||
declare var Response: typeof globalThis extends { | ||
onmessage: any; | ||
Response: infer T; | ||
} ? T | ||
: typeof import("undici-types").Response; | ||
interface FormData extends NodeJS.fetch._FormData {} | ||
declare var FormData: typeof globalThis extends { | ||
onmessage: any; | ||
FormData: infer T; | ||
} ? T | ||
: typeof import("undici-types").FormData; | ||
interface Headers extends NodeJS.fetch._Headers {} | ||
declare var Headers: typeof globalThis extends { | ||
onmessage: any; | ||
Headers: infer T; | ||
} ? T | ||
: typeof import("undici-types").Headers; |
@@ -95,2 +95,8 @@ /** | ||
/** | ||
* Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately. | ||
* If the socket is still writable it implicitly calls `socket.end()`. | ||
* @since v0.3.4 | ||
*/ | ||
destroySoon(): void; | ||
/** | ||
* Sends data on the socket. The second parameter specifies the encoding in the | ||
@@ -97,0 +103,0 @@ * case of a string. It defaults to UTF8 encoding. |
{ | ||
"name": "@types/node", | ||
"version": "18.18.6", | ||
"version": "18.18.8", | ||
"description": "TypeScript definitions for node", | ||
@@ -229,6 +229,8 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "9d2769f7b79caa5e0b224d89e2c891cf96cb53c13b2cb123b796ccd46157c968", | ||
"dependencies": { | ||
"undici-types": "~5.26.4" | ||
}, | ||
"typesPublisherContentHash": "f7999af6cd2d814e685f70a33a79632a49a9ac0bc44f8daa0125c3acab968605", | ||
"typeScriptVersion": "4.5", | ||
"nonNpm": true | ||
} |
@@ -11,6 +11,6 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 18 Oct 2023 05:47:08 GMT | ||
* Dependencies: none | ||
* Last updated: Tue, 31 Oct 2023 08:42:08 GMT | ||
* Dependencies: [undici-types](https://npmjs.com/package/undici-types) | ||
# Credits | ||
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), [wafuwafu13](https://github.com/wafuwafu13), [Matteo Collina](https://github.com/mcollina), and [Dmitry Semigradsky](https://github.com/Semigradsky). |
@@ -323,2 +323,60 @@ // Declare "static" methods in Error | ||
} | ||
namespace fetch { | ||
type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request; | ||
type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response; | ||
type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData; | ||
type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers; | ||
type _RequestInit = typeof globalThis extends { onmessage: any } ? {} | ||
: import("undici-types").RequestInit; | ||
type Request = globalThis.Request; | ||
type Response = globalThis.Response; | ||
type Headers = globalThis.Headers; | ||
type FormData = globalThis.FormData; | ||
type RequestInit = globalThis.RequestInit; | ||
type RequestInfo = import("undici-types").RequestInfo; | ||
type HeadersInit = import("undici-types").HeadersInit; | ||
type BodyInit = import("undici-types").BodyInit; | ||
type RequestRedirect = import("undici-types").RequestRedirect; | ||
type RequestCredentials = import("undici-types").RequestCredentials; | ||
type RequestMode = import("undici-types").RequestMode; | ||
type ReferrerPolicy = import("undici-types").ReferrerPolicy; | ||
type Dispatcher = import("undici-types").Dispatcher; | ||
type RequestDuplex = import("undici-types").RequestDuplex; | ||
} | ||
} | ||
interface RequestInit extends NodeJS.fetch._RequestInit {} | ||
declare function fetch( | ||
input: NodeJS.fetch.RequestInfo, | ||
init?: RequestInit, | ||
): Promise<Response>; | ||
interface Request extends NodeJS.fetch._Request {} | ||
declare var Request: typeof globalThis extends { | ||
onmessage: any; | ||
Request: infer T; | ||
} ? T | ||
: typeof import("undici-types").Request; | ||
interface Response extends NodeJS.fetch._Response {} | ||
declare var Response: typeof globalThis extends { | ||
onmessage: any; | ||
Response: infer T; | ||
} ? T | ||
: typeof import("undici-types").Response; | ||
interface FormData extends NodeJS.fetch._FormData {} | ||
declare var FormData: typeof globalThis extends { | ||
onmessage: any; | ||
FormData: infer T; | ||
} ? T | ||
: typeof import("undici-types").FormData; | ||
interface Headers extends NodeJS.fetch._Headers {} | ||
declare var Headers: typeof globalThis extends { | ||
onmessage: any; | ||
Headers: infer T; | ||
} ? T | ||
: typeof import("undici-types").Headers; |
@@ -95,2 +95,8 @@ /** | ||
/** | ||
* Destroys the socket after all data is written. If the `finish` event was already emitted the socket is destroyed immediately. | ||
* If the socket is still writable it implicitly calls `socket.end()`. | ||
* @since v0.3.4 | ||
*/ | ||
destroySoon(): void; | ||
/** | ||
* Sends data on the socket. The second parameter specifies the encoding in the | ||
@@ -97,0 +103,0 @@ * case of a string. It defaults to UTF8 encoding. |
3802106
85880
15
265
1
+ Addedundici-types@~5.26.4
+ Addedundici-types@5.26.5(transitive)