misskey-awawa/src/@types/koa-slow.d.ts

15 lines
227 B
TypeScript
Raw Normal View History

declare module 'koa-slow' {
import { Middleware } from 'koa';
interface ISlowOptions {
2019-02-03 14:52:46 +00:00
url?: RegExp;
delay?: number;
}
function slow(options?: ISlowOptions): Middleware;
2019-03-23 04:50:10 +00:00
namespace slow {} // Hack
export = slow;
}