diff --git a/index.d.ts b/index.d.ts index 4b8693b..53d9d30 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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; @@ -130,7 +130,7 @@ export declare class HttpTransportClient< headers(headers: Header): HttpTransportClient; query(query: Querystring): HttpTransportClient; timeout(timeout: number): HttpTransportClient; - retries(retries: number): HttpTransportClient; + retry(retries: number): HttpTransportClient; retryDelay(retryDelay: number): HttpTransportClient; asBody(): Promise; asResponse(): Promise;