csurf.d.ts relying on CookieOptions from express

It seems express no longer exports `CookieOptions`, we need to import `express-serve-static-core` instead.
This commit is contained in:
João Cristóvão
2016-12-06 13:37:31 +00:00
committed by GitHub
parent bddf14ed27
commit c6ad01fb48

2
csurf/csurf.d.ts vendored
View File

@@ -12,7 +12,7 @@ declare namespace Express {
}
declare module "csurf" {
import express = require('express');
import express = require('express-serve-static-core');
function csurf(options?: {
value?: (req: express.Request) => string;