Skip to content

Commit

Permalink
fix FastifyHelmetOptions type (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
vidarc authored May 8, 2023
1 parent 1f5fb6e commit 0c40964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ declare namespace fastifyHelmet {
helmet?: Omit<FastifyHelmetOptions, 'global'> | false;
}

export interface FastifyHelmetOptions extends NonNullable<HelmetOptions> {
export type FastifyHelmetOptions = {
enableCSPNonces?: boolean,
global?: boolean;
}
} & NonNullable<HelmetOptions>;

export const fastifyHelmet: FastifyHelmet
export { fastifyHelmet as default }
Expand Down

0 comments on commit 0c40964

Please sign in to comment.