From ee4e29dd5db98a2024fbd2e810b1e43d50618aef Mon Sep 17 00:00:00 2001 From: Mike Ross Date: Wed, 16 Nov 2022 13:47:24 -0500 Subject: [PATCH] Update Typescript definitions to be more specific --- dist/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.d.ts b/dist/index.d.ts index 32bdd9f..3afd58e 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -5,8 +5,8 @@ interface RedisStore extends Store { name: string; getClient: () => RedisClientType; isCacheableValue: any; - set: (key: any, value: any, options: any, cb: any) => Promise; - get: (key: any, options: any, cb: any) => Promise; + set: (key: any, value: T, options?: any, cb?: function) => Promise; + get: (key: any, options?: any, cb?: function) => Promise; del: (...args: any[]) => Promise; mset: (...args: any[]) => Promise; mget: (...args: any[]) => Promise;