From 22e65964cbfb9a3ab72cc7dd5dfcd31458c170d9 Mon Sep 17 00:00:00 2001 From: Umidbek Karimov Date: Sat, 10 Oct 2015 02:23:30 +0500 Subject: [PATCH] csurf - Add boolean type to "cookie" option --- csurf/csurf.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/csurf/csurf.d.ts b/csurf/csurf.d.ts index cc78f95997..4284ff39ce 100644 --- a/csurf/csurf.d.ts +++ b/csurf/csurf.d.ts @@ -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; } -