From d33edd6f3edce06eb76d335432db16de9e54b75a Mon Sep 17 00:00:00 2001 From: Baroshem Date: Sat, 22 Oct 2022 13:00:57 +0200 Subject: [PATCH] fix: types --- src/module.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/module.ts b/src/module.ts index 78b43912..c12062b0 100644 --- a/src/module.ts +++ b/src/module.ts @@ -5,7 +5,7 @@ import defu from 'defu' import { MiddlewareConfiguration, ModuleOptions, RateLimiter, RequestSizeLimiter, SecurityHeaders, XssValidator } from './types' import { defaultSecurityConfig } from './defaultConfig' import { SECURITY_HEADER_NAMES } from './headers' -import { Nuxt, NuxtOptions } from '@nuxt/schema' +import { Nuxt, NuxtOptions, RuntimeConfig } from '@nuxt/schema' import { CorsOptions } from '@nozomuikuta/h3-cors' export default defineNuxtModule({ @@ -22,7 +22,7 @@ export default defineNuxtModule({ }) nuxt.options.runtimeConfig.security = defu(nuxt.options.runtimeConfig.security, { - ...nuxt.options.security + ...nuxt.options.security as RuntimeConfig['security'] }) // Register enabled middlewares to automatically set default values for security response headers.