forked from mirrors/firefish
15 lines
232 B
TypeScript
15 lines
232 B
TypeScript
declare module "koa-slow" {
|
|
import type { Middleware } from "koa";
|
|
|
|
interface ISlowOptions {
|
|
url?: RegExp;
|
|
delay?: number;
|
|
}
|
|
|
|
function slow(options?: ISlowOptions): Middleware;
|
|
|
|
namespace slow {} // Hack
|
|
|
|
export = slow;
|
|
}
|