Skip to content

Commit

Permalink
Merge pull request #735 from zapier/PDE-4677-fix-RawHttpResponse-meth…
Browse files Browse the repository at this point in the history
…od-types

PDE-4677 fix(core): RawHttpResponse method types
  • Loading branch information
eliangcs authored Jan 30, 2024
2 parents cba8371 + e331b05 commit f693a12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ export interface HttpResponse extends BaseHttpResponse {
}

export interface RawHttpResponse extends BaseHttpResponse {
content: Buffer;
json: Promise<object | undefined>;
body: NodeJS.ReadableStream;
buffer(): Promise<Buffer>;
json(): Promise<object>;
text(): Promise<string>;
}

type DehydrateFunc = <T>(
Expand Down

0 comments on commit f693a12

Please sign in to comment.