mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-23 21:35:37 +08:00
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:
2
csurf/csurf.d.ts
vendored
2
csurf/csurf.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user