mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
570 B
TypeScript
21 lines
570 B
TypeScript
// Type definitions for compression
|
|
// Project: https://github.com/expressjs/compression
|
|
// Definitions by: Santi Albo <https://github.com/santialbo/>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference path="../express/express.d.ts" />
|
|
|
|
declare module "compression" {
|
|
import express = require('express');
|
|
|
|
namespace e {
|
|
interface CompressionOptions {
|
|
threshold?: number;
|
|
filter?: Function;
|
|
}
|
|
}
|
|
|
|
function e(options?: e.CompressionOptions): express.RequestHandler;
|
|
export = e;
|
|
}
|