You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix some types
This commit is contained in:
4
index.ts
4
index.ts
@@ -15,7 +15,7 @@ const modules = {
|
||||
ts: RedisTimeSeries
|
||||
};
|
||||
|
||||
export function createClient<S extends RedisScripts = Record<string, never>>(
|
||||
export function createClient<S extends RedisScripts>(
|
||||
options?: Omit<RedisClientOptions<never, S>, 'modules'>
|
||||
): RedisClientType<typeof modules, S> {
|
||||
return _createClient({
|
||||
@@ -24,7 +24,7 @@ export function createClient<S extends RedisScripts = Record<string, never>>(
|
||||
});
|
||||
}
|
||||
|
||||
export function createCluster<S extends RedisScripts = Record<string, never>>(
|
||||
export function createCluster<S extends RedisScripts>(
|
||||
options: Omit<RedisClusterOptions<never, S>, 'modules'>
|
||||
): RedisClusterType<typeof modules, S> {
|
||||
return _createCluster({
|
||||
|
Reference in New Issue
Block a user