Skip to content

Commit

Permalink
Merge pull request #16 from michealroberts/feature/types/UseEventHead…
Browse files Browse the repository at this point in the history
…erPolicy

feat: Added UseEventHeaderPolicy type.
  • Loading branch information
michealroberts authored May 30, 2023
2 parents f8de403 + 8152911 commit b124a82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/internals/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@

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

import { type H3Event } from 'h3'

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

export type UseEventHeaderPolicy<T extends string> = (event: H3Event, policy?: T | boolean) => void

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

export type CrossOriginEmbedderPolicy = 'unsafe-none' | 'require-corp' | 'credentialless'

/*****************************************************************************************************************/
Expand Down

0 comments on commit b124a82

Please sign in to comment.