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: Thu, 09 Mar 2023 17:02:39 GMT
- Dependencies: @types/koa
- Global values: none
Credits
These definitions were written by Haskaalo, and Kirill Shvets.