mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
feat: update csurf type definition
This commit is contained in:
4
csurf/csurf.d.ts
vendored
4
csurf/csurf.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for csurf
|
||||
// Type definitions for csurf 1.9.0
|
||||
// Project: https://www.npmjs.org/package/csurf
|
||||
// Definitions by: Hiroki Horiuchi <https://github.com/horiuchi/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -17,6 +17,8 @@ declare module "csurf" {
|
||||
function csurf(options?: {
|
||||
value?: (req: express.Request) => string;
|
||||
cookie?: csurf.CookieOptions | boolean;
|
||||
ignoreMethods?: string[];
|
||||
sessionKey?: string;
|
||||
}): express.RequestHandler;
|
||||
|
||||
namespace csurf {
|
||||
|
||||
Reference in New Issue
Block a user