csurf - Add boolean type to "cookie" option

This commit is contained in:
Umidbek Karimov 2015-10-10 02:23:30 +05:00
parent 3fc1377ce2
commit 22e65964cb

3
csurf/csurf.d.ts vendored
View File

@ -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;
}