mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-11 02:46:44 -06:00
Create type definition for 'koa-json-body' (#4056)
* Create type definition for 'koa-json-body' * Follow lint
This commit is contained in:
parent
3b30ad5404
commit
bab1dc1d97
2 changed files with 16 additions and 1 deletions
15
src/@types/koa-json-body.d.ts
vendored
Normal file
15
src/@types/koa-json-body.d.ts
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
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;
|
||||||
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
import { ObjectID } from 'mongodb';
|
import { ObjectID } from 'mongodb';
|
||||||
import * as Router from 'koa-router';
|
import * as Router from 'koa-router';
|
||||||
const json = require('koa-json-body');
|
import * as json from 'koa-json-body';
|
||||||
import * as httpSignature from 'http-signature';
|
import * as httpSignature from 'http-signature';
|
||||||
|
|
||||||
import { createHttpJob } from '../queue';
|
import { createHttpJob } from '../queue';
|
||||||
|
|
Loading…
Reference in a new issue