Skip to content

Commit

Permalink
Merge pull request #840 from zapier/SI-784-fix-http-types
Browse files Browse the repository at this point in the history
fix(types): Fix HTTP Option types that used `object`
  • Loading branch information
eliangcs authored Aug 16, 2024
2 parents 9c4f119 + 959d819 commit 776d866
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core/types/zapier.custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ declare class ThrottledError extends Error {
// copied http stuff from external typings
export interface HttpRequestOptions {
agent?: Agent;
body?: string | Buffer | NodeJS.ReadableStream | object;
body?: string | Buffer | NodeJS.ReadableStream | Record<string, any>;
compress?: boolean;
follow?: number;
form?: object;
form?: any;
headers?: { [name: string]: string };
json?: object | any[];
json?: any;
method?: HttpMethod;
params?: object;
params?: Record<string, any>;
raw?: boolean;
redirect?: 'manual' | 'error' | 'follow';
removeMissingValuesFrom?: {
Expand Down

0 comments on commit 776d866

Please sign in to comment.