From 963cddc4d7017c4a21a1c29a05db6676ca914190 Mon Sep 17 00:00:00 2001 From: vidarc Date: Sun, 7 May 2023 16:39:32 -0400 Subject: [PATCH] fix FastifyHelmetOptions type --- types/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index f3f788d..0be05e8 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -27,10 +27,10 @@ declare namespace fastifyHelmet { helmet?: Omit | false; } - export interface FastifyHelmetOptions extends NonNullable { + export type FastifyHelmetOptions = { enableCSPNonces?: boolean, global?: boolean; - } + } & NonNullable; export const fastifyHelmet: FastifyHelmet export { fastifyHelmet as default }