File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
- // Type definitions for koa-helmet 6 .0
1
+ // Type definitions for koa-helmet 7 .0
2
2
// Project: https://github.com/venables/koa-helmet#readme
3
3
// Definitions by: Nick Simmons <https://github.com/nsimmons>
4
4
// Jan Dolezel <https://github.com/dolezel>
@@ -11,7 +11,7 @@ import { Middleware, Context } from 'koa';
11
11
type HelmetOptions = Required < Parameters < typeof helmet > > [ 0 ] ;
12
12
13
13
declare namespace koaHelmet {
14
- type KoaHelmetContentSecurityPolicyDirectiveFunction = ( ctx : Context ) => string ;
14
+ type KoaHelmetContentSecurityPolicyDirectiveFunction = ( req ? : Context [ "req" ] , res ?: Context [ "res" ] ) => string ;
15
15
16
16
type KoaHelmetCspDirectiveValue = string | KoaHelmetContentSecurityPolicyDirectiveFunction ;
17
17
You can’t perform that action at this time.
0 commit comments