DefinitelyTyped/types/koa-html-minifier/index.d.ts

17 lines
544 B
TypeScript

// Type definitions for koa-html-minifier 1.0
// Project: https://github.com/koajs/html-minifier
// Definitions by: Romain Faust <https://github.com/romain-faust>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { Options as HtmlMinifierOptions } from 'html-minifier';
import { Middleware } from 'koa';
declare function koaHtmlMinifier(options?: koaHtmlMinifier.Options): Middleware;
declare namespace koaHtmlMinifier {
type Options = HtmlMinifierOptions;
}
export = koaHtmlMinifier;