From 67d12ef36f4d2f4f09fcdbc92c2350277ac054a4 Mon Sep 17 00:00:00 2001 From: "Michael J. Roberts" Date: Mon, 29 May 2023 10:14:05 +0100 Subject: [PATCH] feat: Added H3HelmetOptions type to internals. feat: Added H3HelmetOptions type to internals. --- src/index.ts | 2 +- src/internals/types.ts | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/internals/types.ts diff --git a/src/index.ts b/src/index.ts index 23634fd..220c67b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,6 +6,6 @@ /*****************************************************************************************************************/ -export {} +export { type H3HelmetOptions } from './defineHelmetEventHandler' /*****************************************************************************************************************/ diff --git a/src/internals/types.ts b/src/internals/types.ts new file mode 100644 index 0000000..12e3412 --- /dev/null +++ b/src/internals/types.ts @@ -0,0 +1,25 @@ +/*****************************************************************************************************************/ + +// @author Michael Roberts +// @package @observerly/nitro-helmet +// @license Copyright © 2021-2023 observerly + +/*****************************************************************************************************************/ + +export interface H3HelmetOptions { + contentSecurityPolicy: string | boolean + crossOriginResourcePolicy: string | boolean + crossOriginOpenerPolicy: string | boolean + crossOriginEmbedderPolicy: string | boolean + originAgentCluster: string | boolean + referrerPolicy: string | boolean + strictTransportSecurity: string | boolean + xContentTypeOptions: string | boolean + xDNSPrefetchControl: string | boolean + xDownloadOptions: string | boolean + xFrameOptions: string | boolean + xPermittedCrossDomainPolicies: string | boolean + xXSSProtection: number | boolean +} + +/*****************************************************************************************************************/