From 9e4e6001a4b5df219286fea6d13012c6ce2c3ff2 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Sun, 26 May 2024 06:31:04 +0900 Subject: [PATCH] fix(middleware): export variables type from each `index.ts` --- src/middleware/jwt/index.ts | 1 + src/middleware/secure-headers/index.ts | 1 + src/middleware/timing/index.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/src/middleware/jwt/index.ts b/src/middleware/jwt/index.ts index ad064d891..ec315e9c8 100644 --- a/src/middleware/jwt/index.ts +++ b/src/middleware/jwt/index.ts @@ -1,4 +1,5 @@ import type { JwtVariables } from './jwt' +export type { JwtVariables } export { jwt, verify, decode, sign } from './jwt' import type {} from '../..' diff --git a/src/middleware/secure-headers/index.ts b/src/middleware/secure-headers/index.ts index 8a2629164..07ebffe06 100644 --- a/src/middleware/secure-headers/index.ts +++ b/src/middleware/secure-headers/index.ts @@ -1,6 +1,7 @@ export type { ContentSecurityPolicyOptionHandler } from './secure-headers' export { NONCE, secureHeaders } from './secure-headers' import type { SecureHeadersVariables } from './secure-headers' +export type { SecureHeadersVariables } declare module '../..' { interface ContextVariableMap extends SecureHeadersVariables {} diff --git a/src/middleware/timing/index.ts b/src/middleware/timing/index.ts index db3e323e5..cc77a5bae 100644 --- a/src/middleware/timing/index.ts +++ b/src/middleware/timing/index.ts @@ -1,4 +1,5 @@ import type { TimingVariables } from './timing' +export { TimingVariables } export { timing, setMetric, startTime, endTime } from './timing' declare module '../..' {