// Fallback ambient types for `redis`. // // The official `redis` package ships its own types. In some editor setups // (especially with newer TS + `moduleResolution: bundler`) the TS server may // temporarily fail to resolve them. This keeps the project compiling. declare module 'redis' { export type RedisClientType = { connect(): Promise; get(key: string): Promise; set( key: string, value: string, options?: { EX?: number; } ): Promise; del(key: string): Promise; }; export function createClient(options: { url: string }): RedisClientType; }