mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[gunzip-maybe] Creation of Types (#43700)
* added gunzip-maybe * Fix Linting
This commit is contained in:
parent
80922190a8
commit
d8a951cec2
4
types/gunzip-maybe/gunzip-maybe-tests.ts
Normal file
4
types/gunzip-maybe/gunzip-maybe-tests.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import gunzip from "gunzip-maybe";
|
||||
import * as fs from "fs";
|
||||
|
||||
fs.createReadStream("file.gz").pipe(gunzip()).pipe(fs.createWriteStream("file"));
|
||||
12
types/gunzip-maybe/index.d.ts
vendored
Normal file
12
types/gunzip-maybe/index.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
// Type definitions for gunzip-maybe 1.4
|
||||
// Project: https://github.com/mafintosh/gunzip-maybe
|
||||
// Definitions by: Thomas Hobson <https://github.com/hexf>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import * as stream from "stream";
|
||||
|
||||
declare function gunzip(maxRecursion?: number): stream.Transform;
|
||||
|
||||
export = gunzip;
|
||||
24
types/gunzip-maybe/tsconfig.json
Normal file
24
types/gunzip-maybe/tsconfig.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"gunzip-maybe-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/gunzip-maybe/tslint.json
Normal file
1
types/gunzip-maybe/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user