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

Commit

Permalink
fix: model type
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowMarble authored and Asjas committed Nov 3, 2023
1 parent a4a2382 commit cde1dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export type TtlFunction = (data: any) => number;

export type CreatePrismaRedisCache = {
models?: {
model: string | Prisma.ModelName;
model: string & {} | Prisma.ModelName;
cacheKey?: string;
cacheTime?: number | TtlFunction;
excludeMethods?: PrismaQueryAction[];
Expand Down

0 comments on commit cde1dcb

Please sign in to comment.