@types/koa-compress
Advanced tools
Comparing version 2.0.8 to 2.0.9
@@ -19,8 +19,14 @@ // Type definitions for koa-compress v2.x | ||
declare module "koa-compress" { | ||
import * as Koa from "koa"; | ||
import * as zlib from "zlib"; | ||
import * as Koa from "koa"; | ||
import * as zlib from "zlib"; | ||
/** | ||
* Compress middleware for Koa | ||
*/ | ||
declare function koaCompress(options?: koaCompress.CompressOptions): Koa.Middleware; | ||
interface CompressOptions extends zlib.ZlibOptions { | ||
export = koaCompress; | ||
declare namespace koaCompress { | ||
export interface CompressOptions extends zlib.ZlibOptions { | ||
/** | ||
@@ -36,10 +42,2 @@ * An optional function that checks the response content type to decide whether to compress. By default, it uses compressible. | ||
} | ||
/** | ||
* Compress middleware for Koa | ||
*/ | ||
function compress(options?: CompressOptions): Koa.Middleware; | ||
namespace compress {} | ||
export = compress; | ||
} |
{ | ||
"name": "@types/koa-compress", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"description": "TypeScript definitions for koa-compress", | ||
@@ -14,5 +14,7 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/koa-compress" | ||
}, | ||
@@ -24,4 +26,4 @@ "scripts": {}, | ||
}, | ||
"typesPublisherContentHash": "a459be90b7055238c477e13020dba1cb1ace42b3def6b8a630598621619f4008", | ||
"typesPublisherContentHash": "755488692e3c6e4386376f584bdcee572fcaa3f2159b8973d9937f49892d4a10", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -5,10 +5,10 @@ # Installation | ||
# Summary | ||
This package contains type definitions for koa-compress (https://github.com/koajs/compress). | ||
This package contains type definitions for koa-compress ( https://github.com/koajs/compress ). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-compress | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-compress | ||
Additional Details | ||
* Last updated: Thu, 09 Nov 2017 08:43:08 GMT | ||
* Dependencies: koa, zlib, node | ||
* Last updated: Mon, 25 Mar 2019 16:37:58 GMT | ||
* Dependencies: @types/koa, @types/node | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
3641
32