Skip to content

Commit

Permalink
fix(types): declare buffer() deprecated (#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Oct 23, 2021
1 parent 4972e00 commit 965b323
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions @types/index.d.ts
Expand Up @@ -104,6 +104,9 @@ declare class BodyMixin {
readonly bodyUsed: boolean;
readonly size: number;

/**
* @deprecated Please use 'response.arrayBuffer()' instead of 'response.buffer()
*/
buffer(): Promise<Buffer>;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
Expand Down

0 comments on commit 965b323

Please sign in to comment.