Skip to content

Commit

Permalink
fix TAuthenticationResult type
Browse files Browse the repository at this point in the history
  • Loading branch information
seriousme committed Oct 21, 2024
1 parent ba343ba commit 220349c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {
type AuthenticationResult,
type TAuthenticationResult,
type ConnectPacket,
Deferred,
logger,
Expand Down Expand Up @@ -133,7 +133,7 @@ export class Client {
}
}

connect(params: ConnectParameters = {}): Promise<AuthenticationResult> {
connect(params: ConnectParameters = {}): Promise<TAuthenticationResult> {
this.url = params?.url || this.url;
this.numberOfRetries = params.numberOfRetries || this.numberOfRetries;
this.caCerts = params?.caCerts;
Expand All @@ -148,7 +148,7 @@ export class Client {
type: PacketType.connect,
...options,
};
const deferred = new Deferred<AuthenticationResult>();
const deferred = new Deferred<TAuthenticationResult>();
this.ctx.unresolvedConnect = deferred;
this.doConnect();
return deferred.promise;
Expand Down

0 comments on commit 220349c

Please sign in to comment.