mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
csurf - Add boolean type to "cookie" option
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user