Skip to content

Commit 3a4fcad

Browse files
authored
fix return type
1 parent 3f8dbec commit 3a4fcad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client/lib/client/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,11 @@ export default class RedisClient<
426426
});
427427
}
428428

429-
async connect(): Promise<RedisClientType<M, F, S>> {
429+
async connect() {
430430
// see comment in constructor
431431
this.#isolationPool ??= this.#initiateIsolationPool();
432432
await this.#socket.connect();
433-
return this;
433+
return this as unknown as RedisClientType<M, F, S>;
434434
}
435435

436436
async commandsExecutor<C extends RedisCommand>(

0 commit comments

Comments
 (0)