Skip to content

Commit

Permalink
feat: Added H3HelmetOptions type to internals.
Browse files Browse the repository at this point in the history
feat: Added H3HelmetOptions type to internals.
  • Loading branch information
michealroberts committed May 29, 2023
1 parent af160ba commit 67d12ef
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

/*****************************************************************************************************************/

export {}
export { type H3HelmetOptions } from './defineHelmetEventHandler'

/*****************************************************************************************************************/
25 changes: 25 additions & 0 deletions src/internals/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*****************************************************************************************************************/

// @author Michael Roberts <michael@observerly.com>
// @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
}

/*****************************************************************************************************************/

0 comments on commit 67d12ef

Please sign in to comment.