We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6adfc9 commit c0b369eCopy full SHA for c0b369e
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@openworkers/workers-types",
3
- "version": "0.1.1",
+ "version": "0.1.2",
4
"description": "TypeScript types for the OpenWorkers runtime",
5
"license": "MIT",
6
"repository": {
types/encoding.d.ts
@@ -1,5 +1,13 @@
// Encoding API types
+type BufferSource = ArrayBuffer | ArrayBufferView;
+
+interface ArrayBufferView {
+ buffer: ArrayBuffer;
7
+ byteLength: number;
8
+ byteOffset: number;
9
+}
10
11
declare class TextEncoder {
12
readonly encoding: string;
13
encode(input?: string): Uint8Array;
0 commit comments