mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-11-16 12:46:42 +01:00
bab1dc1d97
* Create type definition for 'koa-json-body' * Follow lint
15 lines
286 B
TypeScript
15 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;
|
|
}
|