Skip to content

Commit

Permalink
Merge pull request #3189 from cloudflare/emily/arraybuffer-types
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig authored Nov 29, 2024
2 parents d65a5e3 + 1757c47 commit 3cc489b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/workerd/api/blob.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class Blob: public jsg::Object {

JSG_TS_OVERRIDE({
bytes(): Promise<Uint8Array>;
arrayBuffer(): Promise<ArrayBuffer>;
});
}

Expand Down
1 change: 1 addition & 0 deletions src/workerd/api/http.h
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ class Body: public jsg::Object {
JSG_TS_OVERRIDE({
json<T>(): Promise<T>;
bytes(): Promise<Uint8Array>;
arrayBuffer(): Promise<ArrayBuffer>;
});
// Allow JSON body type to be specified
}
Expand Down
1 change: 1 addition & 0 deletions src/workerd/api/r2-bucket.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ class R2Bucket: public jsg::Object {
JSG_METHOD(blob);
JSG_TS_OVERRIDE(R2ObjectBody {
json<T>(): Promise<T>;
arrayBuffer(): Promise<ArrayBuffer>;
});
}

Expand Down

0 comments on commit 3cc489b

Please sign in to comment.