Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
replace Redis type with RedisOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Asjas committed Jul 7, 2022
1 parent 31402e5 commit 7beb808
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type Redis from "ioredis";
import type { RedisOptions } from "ioredis";

export type PrismaQueryAction =
| "findFirst"
Expand Down Expand Up @@ -45,7 +45,7 @@ export type Middleware<T = any> = (
export type FetchFromPrisma = (params: MiddlewareParams) => Promise<Result>;

export type RedisMemoryOptions = {
client: Redis;
client: RedisOptions;
invalidation?: boolean | { referencesTTL?: number };
log?: any;
};
Expand Down

0 comments on commit 7beb808

Please sign in to comment.