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, 14 Sep 2023 01:49:18 GMT
- Dependencies: @types/koa
- Global values: none
Credits
These definitions were written by Haskaalo, and Kirill Shvets.