1.11.5 • Published 6 months ago
@types/csurf v1.11.5
Installation
npm install --save @types/csurf
Summary
This package contains type definitions for csurf (https://www.npmjs.org/package/csurf).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/csurf.
index.d.ts
// Type definitions for csurf 1.11
// Project: https://www.npmjs.org/package/csurf
// Definitions by: Hiroki Horiuchi <https://github.com/horiuchi>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import express = require('express-serve-static-core');
declare global {
namespace Express {
interface Request {
csrfToken(): string;
}
}
}
declare function csurf(options?: {
value?: ((req: express.Request) => string) | undefined;
/**
* @default false
*/
cookie?: csurf.CookieOptions | boolean | undefined;
ignoreMethods?: string[] | undefined;
sessionKey?: string | undefined;
}): express.RequestHandler;
declare namespace csurf {
interface CookieOptions extends express.CookieOptions {
/**
* @default '_csrf'
*/
key?: string | undefined;
}
}
export = csurf;
Additional Details
- Last updated: Tue, 06 Jul 2021 20:32:35 GMT
- Dependencies: @types/express-serve-static-core
- Global values: none
Credits
These definitions were written by Hiroki Horiuchi, and Piotr Błażejewicz.
1.11.4
7 months ago
1.11.3
8 months ago
1.11.5
6 months ago
1.11.2
3 years ago
1.11.1
3 years ago
1.11.0
3 years ago
1.9.36
5 years ago
1.9.35
7 years ago
1.9.34
7 years ago
1.9.33
7 years ago
1.9.32
8 years ago
1.9.31
8 years ago
1.9.30
8 years ago
1.9.29
8 years ago
0.0.28
8 years ago
0.0.27-alpha
8 years ago
0.0.26-alpha
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.16-alpha
8 years ago
0.0.15-alpha
8 years ago