1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

More fixes for socket issue (#2710)

* more typing fixes

* try to redo typing a bit and genericize to make better

* use genericized cluster options for cluster as well
This commit is contained in:
Shaya Potter
2024-02-21 10:29:24 +02:00
committed by GitHub
parent 7e27f72f72
commit 3e167912fb
6 changed files with 48 additions and 32 deletions

View File

@@ -8,6 +8,7 @@ import RedisClusterSlots, { NodeAddressMap, ShardNode } from './cluster-slots';
import RedisClusterMultiCommand, { RedisClusterMultiCommandType } from './multi-command';
import { PubSubListener } from '../client/pub-sub';
import { ErrorReply } from '../errors';
import { RedisTcpSocketOptions } from '../client/socket';
interface ClusterCommander<
M extends RedisModules,
@@ -21,7 +22,7 @@ interface ClusterCommander<
}
export type RedisClusterClientOptions = Omit<
RedisClientOptions,
RedisClientOptions<RedisModules, RedisFunctions, RedisScripts, RespVersions, TypeMapping, RedisTcpSocketOptions>,
keyof ClusterCommander<RedisModules, RedisFunctions, RedisScripts, RespVersions, TypeMapping/*, CommandPolicies*/>
>;