undici-types 7.19.2 → 7.20.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/dispatcher.d.ts +1 -0
- package/package.json +1 -1
- package/webidl.d.ts +6 -0
package/dispatcher.d.ts
CHANGED
package/package.json
CHANGED
package/webidl.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// These types are not exported, and are only used internally
|
|
2
|
+
import { BufferSource } from 'node:stream/web'
|
|
2
3
|
import * as undici from './index'
|
|
3
4
|
|
|
4
5
|
/**
|
|
@@ -93,6 +94,11 @@ interface WebidlUtil {
|
|
|
93
94
|
IsResizableArrayBuffer (V: ArrayBufferLike): boolean
|
|
94
95
|
|
|
95
96
|
HasFlag (flag: number, attributes: number): boolean
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @see https://webidl.spec.whatwg.org/#dfn-get-buffer-source-copy
|
|
100
|
+
*/
|
|
101
|
+
getCopyOfBytesHeldByBufferSource (bufferSource: BufferSource): Uint8Array
|
|
96
102
|
}
|
|
97
103
|
|
|
98
104
|
interface WebidlConverters {
|