mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 11:43:09 +02:00
16 lines
286 B
TypeScript
16 lines
286 B
TypeScript
|
declare module 'koa-json-body' {
|
||
|
import { Middleware } from 'koa';
|
||
|
|
||
|
interface IKoaJsonBodyOptions {
|
||
|
strict: boolean;
|
||
|
limit: string;
|
||
|
fallback: boolean;
|
||
|
}
|
||
|
|
||
|
function koaJsonBody(opt?: IKoaJsonBodyOptions): Middleware;
|
||
|
|
||
|
namespace koaJsonBody {} // Hack
|
||
|
|
||
|
export = koaJsonBody;
|
||
|
}
|