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 = koaCsrf;
import { Middleware } from 'koa';
declare module "koa" {
interface Context {
csrf: string;
}
}
declare const koaCsrf: {
new (opts?: {
invalidSessionSecretMessage?: string | undefined;
invalidSessionSecretStatusCode?: number | undefined;
invalidTokenMessage?: string | undefined;
invalidTokenStatusCode?: number | undefined;
excludedMethods?: string[] | undefined;
disableQuery?: boolean | undefined;
}): Middleware;
};
Additional Details
- Last updated: Thu, 08 Jul 2021 16:23:20 GMT
- Dependencies: @types/koa
- Global values: none
Credits
These definitions were written by Haskaalo.