mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
csurf - Add boolean type to "cookie" option
This commit is contained in:
parent
3fc1377ce2
commit
22e65964cb
3
csurf/csurf.d.ts
vendored
3
csurf/csurf.d.ts
vendored
@ -16,7 +16,7 @@ declare module "csurf" {
|
||||
|
||||
function csurf(options?: {
|
||||
value?: (req: express.Request) => string;
|
||||
cookie?: csurf.CookieOptions;
|
||||
cookie?: csurf.CookieOptions | boolean;
|
||||
}): express.RequestHandler;
|
||||
|
||||
module csurf {
|
||||
@ -27,4 +27,3 @@ declare module "csurf" {
|
||||
|
||||
export = csurf;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user