Skip to content

Commit

Permalink
fix: added typings for criticalErrorDetector
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15stevens committed Nov 20, 2024
1 parent 3ab35a1 commit e675152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export declare class HttpTransportBuilder<
userAgent(userAgent: string): HttpTransportBuilder<ContextCurrent>;
retries(retries: number): HttpTransportBuilder<ContextCurrent>;
retryDelay(retryDelay: number): HttpTransportBuilder<ContextCurrent>;
criticalErrorDetector(criticalErrorDetector: (err, ctx: Context) => boolean);
use<ContextExtra = {}>(
fn: Plugin<ContextExtra, ContextCurrent>
): HttpTransportBuilder<ContextExtra & ContextCurrent>;
Expand Down Expand Up @@ -141,7 +142,7 @@ export declare class HttpTransportClient<
ResponseBody
>;
asResponse<ResponseBody = ContextCurrent["res"]["body"]>(): Promise<
AsResponse<ContextCurrent["res"], ResponseBody>
AsResponse<ContextCurrent["res"], ResponseBody>
>;
}

Expand Down

0 comments on commit e675152

Please sign in to comment.