@types/inflation
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -25,4 +25,4 @@ // Type definitions for inflation 2.0 | ||
*/ | ||
gzip?: 'deflate' | 'gzip' | 'identity'; | ||
gzip?: 'deflate' | 'gzip' | 'identity' | undefined; | ||
} | ||
} |
{ | ||
"name": "@types/inflation", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "TypeScript definitions for inflation", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inflation", | ||
"license": "MIT", | ||
@@ -14,3 +15,3 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -25,4 +26,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "6be54ee6dcdc4325a8e3863df19d769bf8c4728a2a127d38fd57993acfc42c48", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "110336bfb36be459f03bac79e924f25598ca3d3d0685b572490b259f509aef84", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -5,13 +5,44 @@ # Installation | ||
# Summary | ||
This package contains type definitions for inflation ( https://github.com/stream-utils/inflation#readme ). | ||
This package contains type definitions for inflation (https://github.com/stream-utils/inflation#readme). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inflation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inflation. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inflation/index.d.ts) | ||
````ts | ||
// Type definitions for inflation 2.0 | ||
// Project: https://github.com/stream-utils/inflation#readme | ||
// Definitions by: Remco Haszing <https://github.com/remcohaszing> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
Additional Details | ||
* Last updated: Sat, 04 May 2019 17:36:14 GMT | ||
* Dependencies: @types/node | ||
/// <reference types="node" /> | ||
import { Readable } from 'stream'; | ||
import { ZlibOptions } from 'zlib'; | ||
export = inflate; | ||
/** | ||
* Automatically unzip an HTTP stream. | ||
* | ||
* @returns a stream that emits inflated data from the given stream. | ||
*/ | ||
declare function inflate(req: Readable, options?: inflate.Options): Readable; | ||
declare namespace inflate { | ||
interface Options extends ZlibOptions { | ||
/** | ||
* The encoding of the stream. If not given, will look in `stream.headers['content-encoding']`. | ||
*/ | ||
gzip?: 'deflate' | 'gzip' | 'identity' | undefined; | ||
} | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Thu, 08 Jul 2021 14:23:12 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Remco Haszing <https://github.com/remcohaszing>. | ||
These definitions were written by [Remco Haszing](https://github.com/remcohaszing). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
4308
0
48