Skip to content

Commit

Permalink
fix tsbuild (#2307)
Browse files Browse the repository at this point in the history
* fix tsbuild

* fix tsbuild

* fix tsbuild
  • Loading branch information
leibale authored Oct 26, 2022
1 parent 72c0e7b commit 0abd950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/client/lib/commander.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

import { ClientCommandOptions } from './client';
import { CommandOptions, isCommandOptions } from './command-options';
import { RedisCommand, RedisCommandArgument, RedisCommandArguments, RedisCommandReply, RedisFunction, RedisFunctions, RedisModules, RedisScript, RedisScripts } from './commands';

Expand Down Expand Up @@ -103,7 +104,7 @@ function attachWithNamespaces<C extends RedisCommand>({
return Commander;
}

export function transformCommandArguments<T>(
export function transformCommandArguments<T = ClientCommandOptions>(
command: RedisCommand,
args: Array<unknown>
): {
Expand Down
3 changes: 2 additions & 1 deletion packages/test-utils/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { RedisModules, RedisFunctions, RedisScripts } from '@redis/client/lib/commands';
import RedisClient, { RedisClientOptions, RedisClientType } from '@redis/client/lib/client';
import RedisCluster, { RedisClusterOptions, RedisClusterType } from '@redis/client/lib/cluster';
import { RedisSocketCommonOptions } from '@redis/client/lib/client/socket';
import { RedisServerDockerConfig, spawnRedisServer, spawnRedisCluster } from './dockers';
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
Expand All @@ -21,7 +22,7 @@ interface ClientTestOptions<
S extends RedisScripts
> extends CommonTestOptions {
serverArguments: Array<string>;
clientOptions?: Partial<RedisClientOptions<M, F, S>>;
clientOptions?: Partial<Omit<RedisClientOptions<M, F, S>, 'socket'> & { socket: RedisSocketCommonOptions }>;
disableClientSetup?: boolean;
}

Expand Down

0 comments on commit 0abd950

Please sign in to comment.