Skip to content

Commit

Permalink
Fix type definition for Client Interceptors
Browse files Browse the repository at this point in the history
Updating the client constructor to accept an array of interceptor
functions to match the documentation.
  • Loading branch information
ComradeCow committed Sep 18, 2023
1 parent b0d3ca7 commit 59ed2bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types/client.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { URL } from 'url'
import { TlsOptions } from 'tls'
import Dispatcher from './dispatcher'
import DispatchInterceptor from './dispatcher'
import buildConnector from "./connector";

/**
Expand All @@ -19,7 +18,7 @@ export class Client extends Dispatcher {

export declare namespace Client {
export interface OptionsInterceptors {
Client: readonly DispatchInterceptor[];
Client: readonly Dispatcher.DispatchInterceptor[];
}
export interface Options {
/** TODO */
Expand Down

0 comments on commit 59ed2bb

Please sign in to comment.