Skip to content

Commit

Permalink
refactor: deprecate FastifyRedisPlugin type and enforce `FastifyRed…
Browse files Browse the repository at this point in the history
…isOptions`
  • Loading branch information
darkgl0w committed Sep 25, 2021
1 parent 3fab4a6 commit aae237a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ declare module 'fastify' {
}
}

export type FastifyRedisPlugin = (RedisOptions &
export type FastifyRedisPluginOptions = (RedisOptions &
{
url?: string;
namespace?: string;
Expand All @@ -23,5 +23,8 @@ export type FastifyRedisPlugin = (RedisOptions &
closeClient?: boolean;
}

declare const fastifyRedis: FastifyPluginCallback<FastifyRedisPlugin>;
/** @deprecated */
export type FastifyRedisPlugin = FastifyRedisPluginOptions;

declare const fastifyRedis: FastifyPluginCallback<FastifyRedisPluginOptions>;
export default fastifyRedis;

0 comments on commit aae237a

Please sign in to comment.