mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
469 B
TypeScript
20 lines
469 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
|
|
|
|
|
|
|
|
|
|
import express = require('express');
|
|
|
|
declare namespace e {
|
|
interface CompressionOptions {
|
|
threshold?: number;
|
|
filter?: Function;
|
|
}
|
|
}
|
|
|
|
declare function e(options?: e.CompressionOptions): express.RequestHandler;
|
|
export = e;
|