diff --git a/package.json b/package.json index 472cfe5..f863efd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fastify/caching", - "version": "8.3.0", + "version": "8.4.0", "description": "A plugin for Fastify to enable management of cache control headers", "main": "index.js", "type": "commonjs", @@ -40,7 +40,7 @@ "snazzy": "^9.0.0", "standard": "^17.1.0", "tap": "^18.7.0", - "tsd": "^0.30.7" + "tsd": "^0.31.0" }, "dependencies": { "abstract-cache": "^1.0.1", diff --git a/types/index.d.ts b/types/index.d.ts index 5e04d88..4322933 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -52,7 +52,7 @@ declare namespace fastifyCaching { ): void; /** * If AbstractCache is using useAwait = true, then this method-header must be used. - * @param key + * @param key */ get( key: string | { id: string; segment: string }, @@ -130,9 +130,8 @@ declare namespace fastifyCaching { serverExpiresIn?: number; } - export const privacy: { - privacy: Privacy; - }; + export const privacy: Privacy; + export const fastifyCaching: FastifyCaching; export { fastifyCaching as default }; }