mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Add basic type definitions for express 4.x
This commit is contained in:
Vendored
+20
@@ -0,0 +1,20 @@
|
||||
// Type definitions for compression
|
||||
// Project: https://github.com/expressjs/compression
|
||||
// Definitions by: Santi Albo <https://github.com/santialbo/>
|
||||
// DefinitelyTyped: 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;
|
||||
}
|
||||
Reference in New Issue
Block a user