undici-types
Advanced tools
Comparing version 6.20.0 to 6.21.0
@@ -247,2 +247,3 @@ import { URL } from 'url' | ||
blob(): Promise<Blob>; | ||
bytes(): Promise<Uint8Array>; | ||
formData(): Promise<never>; | ||
@@ -249,0 +250,0 @@ json(): Promise<unknown>; |
{ | ||
"name": "undici-types", | ||
"version": "6.20.0", | ||
"version": "6.21.0", | ||
"description": "A stand-alone types package for Undici", | ||
@@ -5,0 +5,0 @@ "homepage": "https://undici.nodejs.org", |
@@ -28,2 +28,7 @@ import { Readable } from "stream"; | ||
/** Consumes and returns the body as an Uint8Array | ||
* https://fetch.spec.whatwg.org/#dom-body-bytes | ||
*/ | ||
bytes(): Promise<Uint8Array> | ||
/** Consumes and returns the body as an ArrayBuffer | ||
@@ -30,0 +35,0 @@ * https://fetch.spec.whatwg.org/#dom-body-arraybuffer |
@@ -70,2 +70,8 @@ // These types are not exported, and are only used internally | ||
Stringify (V: any): string | ||
/** | ||
* Mark a value as uncloneable for Node.js. | ||
* This is only effective in some newer Node.js versions. | ||
*/ | ||
markAsUncloneable (V: any): void | ||
} | ||
@@ -72,0 +78,0 @@ |
83680
2033