Skip to content

Commit

Permalink
fix typo in and optionlify arg passed to toJson method declaration fi…
Browse files Browse the repository at this point in the history
…le (#44)
  • Loading branch information
yusuf963 authored Nov 20, 2023
1 parent fa79732 commit 9b8c3fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ declare enum Method {
options
}

export declare function toJson(opts: ToJsonOpts): Plugin;
export declare function toJson(opts?: ToJsonOpts): Plugin;
export declare function logger(logger?: any): Plugin;
export declare function setContextProperty(opts: any, path: string): Plugin;

Expand Down Expand Up @@ -130,7 +130,7 @@ export declare class HttpTransportClient<
headers(headers: Header): HttpTransportClient<ContextCurrent>;
query(query: Querystring): HttpTransportClient<ContextCurrent>;
timeout(timeout: number): HttpTransportClient<ContextCurrent>;
retries(retries: number): HttpTransportClient<ContextCurrent>;
retry(retries: number): HttpTransportClient<ContextCurrent>;
retryDelay(retryDelay: number): HttpTransportClient<ContextCurrent>;
asBody(): Promise<ContextCurrent["res"]["body"]>;
asResponse(): Promise<ContextCurrent["res"]>;
Expand Down

0 comments on commit 9b8c3fa

Please sign in to comment.