Skip to content

Commit 4249108

Browse files
committed
Fix types
1 parent 4f65285 commit 4249108

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/redis/RedisCache.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Cache, CacheConfiguration, Loader } from '../DataSources'
2-
import type Redis from 'ioredis'
2+
import type { Redis } from 'ioredis'
33

44
export interface RedisCacheConfiguration extends CacheConfiguration {
55
json: boolean
@@ -11,12 +11,12 @@ const DefaultConfiguration: RedisCacheConfiguration = {
1111
}
1212

1313
export class RedisCache<T> implements Cache<T>, Loader<T> {
14-
private readonly redis: Redis.Redis
14+
private readonly redis: Redis
1515
private readonly config: RedisCacheConfiguration
1616
name = 'Redis cache'
1717
isCache = true
1818

19-
constructor(redis: Redis.Redis, config: RedisCacheConfiguration = DefaultConfiguration) {
19+
constructor(redis: Redis, config: RedisCacheConfiguration = DefaultConfiguration) {
2020
this.redis = redis
2121
this.config = config
2222
}

0 commit comments

Comments
 (0)