Skip to content

Commit

Permalink
Merge pull request #89 from jeremy-daley-kr/fix/types
Browse files Browse the repository at this point in the history
fix type declarations
  • Loading branch information
venables authored Nov 12, 2024
2 parents 5659f38 + 4f9e7d4 commit eebe047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions koa-helmet.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for koa-helmet 6.0
// Type definitions for koa-helmet 7.0
// Project: https://github.com/venables/koa-helmet#readme
// Definitions by: Nick Simmons <https://github.com/nsimmons>
// Jan Dolezel <https://github.com/dolezel>
Expand All @@ -11,7 +11,7 @@ import { Middleware, Context } from 'koa';
type HelmetOptions = Required<Parameters<typeof helmet>>[0];

declare namespace koaHelmet {
type KoaHelmetContentSecurityPolicyDirectiveFunction = (ctx: Context) => string;
type KoaHelmetContentSecurityPolicyDirectiveFunction = (req?: Context["req"], res?: Context["res"]) => string;

type KoaHelmetCspDirectiveValue = string | KoaHelmetContentSecurityPolicyDirectiveFunction;

Expand Down

0 comments on commit eebe047

Please sign in to comment.