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