-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
latest version 4
i declare my redisclient upfront but i have to import the redisclienttype seperately
import { createClient } from 'redis';
import { RedisClientType } from '@node-redis/client/dist/lib/client';
export class Redis {
public redisClient!: RedisClientType<any>;
......
this.redisClient = createClient({
url: this.credentials.uri,
legacyMode: true,
socket: {
tls: true,
ca,
reconnectStrategy: redisRetryStrategy,
},
});
can you re-export it ? so that i don't have to install @node-redis separately
Module '"redis"' declares 'RedisClientType' locally, but it is not exported.ts(2459)
import { RedisScripts } from '@node-redis/client/dist/lib/commands';
import { RedisClientOptions, RedisClientType } from '@node-redis/client/dist/lib/client';
import { RedisClusterOptions, RedisClusterType } from '@node-redis/client/dist/lib/cluster';
export * from '@node-redis/client';
export * from '@node-redis/json';
export * from '@node-redis/search';
thanks
Igorgro, 0xDing, GalStan, tobiasdiez, xtianus79 and 1 more