Skip to content

Commit 1a9b880

Browse files
authored
Update Typescript definitions (#69)
1 parent 0337e7f commit 1a9b880

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Fastify, { FastifyPlugin } from 'fastify';
1+
import { FastifyPluginCallback } from 'fastify';
22
import { Redis, RedisOptions } from 'ioredis';
33

44
declare module 'fastify' {
@@ -9,6 +9,6 @@ declare module 'fastify' {
99

1010
export type FastifyRedisPlugin = RedisOptions & { url?: string } | { client: Redis }
1111

12-
declare const fastifyRedis: FastifyPlugin<FastifyRedisPlugin>;
12+
declare const fastifyRedis: FastifyPluginCallback<FastifyRedisPlugin>;
1313

1414
export default fastifyRedis;

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
},
3131
"homepage": "https://github.com/fastify/fastify-redis#readme",
3232
"devDependencies": {
33-
"@types/ioredis": "^4.0.18",
34-
"@types/node": "^14.0.1",
35-
"fastify": "^3.0.0",
33+
"@types/ioredis": "^4.19.3",
34+
"@types/node": "^14.14.26",
35+
"fastify": "^3.11.0",
3636
"proxyquire": "^2.1.3",
3737
"redis": "^3.0.2",
3838
"standard": "^16.0.0",
@@ -41,7 +41,7 @@
4141
},
4242
"dependencies": {
4343
"fastify-plugin": "^3.0.0",
44-
"ioredis": "^4.10.0"
44+
"ioredis": "^4.22.0"
4545
},
4646
"tsd": {
4747
"directory": "test/types"

0 commit comments

Comments
 (0)