Installation
npm install --save @types/koa-csrf
Summary
This package contains type definitions for koa-csrf (https://github.com/koajs/csrf).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-csrf.
export = CSRF;
import { Context, Middleware } from 'koa';
declare module 'koa' {
interface DefaultState {
_csrf: string;
}
}
declare const CSRF: {
new (opts?: {
errorHandler?: (ctx: Context) => never;
excludedMethods?: string[];
disableQuery?: boolean;
ignoredPathGlobs?: string[];
}): Middleware;
};
Additional Details
- Last updated: Wed, 17 Aug 2022 17:02:25 GMT
- Dependencies: @types/koa
- Global values: none
Credits
These definitions were written by Haskaalo, and Kirill Shvets.