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