mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
489 B
TypeScript
18 lines
489 B
TypeScript
// Type definitions for kompression 1.0
|
|
// Project: https://github.com/tuananh/kompression
|
|
// Definitions by: Aankhen <https://github.com/Aankhen>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import koa = require("koa");
|
|
|
|
export = kompression;
|
|
|
|
declare function kompression(options?: Kompression.Options): koa.Middleware;
|
|
|
|
declare namespace Kompression {
|
|
interface Options {
|
|
filter?: (contentType: string) => boolean;
|
|
threshold?: number;
|
|
}
|
|
}
|