Merge pull request #34734 from nwtgck/remove-get-stdin

[get-stdin] Remove the type definition of get-stdin
This commit is contained in:
Daniel Rosenwasser
2019-04-15 11:51:32 -07:00
committed by GitHub
5 changed files with 6 additions and 46 deletions

View File

@@ -834,6 +834,12 @@
"sourceRepoURL": "https://github.com/sindresorhus/get-port",
"asOfVersion": "4.2.0"
},
{
"libraryName": "get-stdin",
"typingsPackageName": "get-stdin",
"sourceRepoURL": "https://github.com/sindresorhus/get-stdin",
"asOfVersion": "7.0.0"
},
{
"libraryName": "get-stream",
"typingsPackageName": "get-stream",

View File

@@ -1,9 +0,0 @@
import getStdin = require("get-stdin");
getStdin().then(str => {
console.log(str.toLowerCase());
});
getStdin.buffer().then(buffer => {
console.log(`Length ${buffer.length}${buffer.toString()}`);
});

View File

@@ -1,13 +0,0 @@
// Type definitions for get-stdin 5.0
// Project: https://github.com/sindresorhus/get-stdin
// Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
declare function getStdin(): Promise<string>;
declare namespace getStdin {
function buffer(): Promise<Buffer>;
}
export = getStdin;

View File

@@ -1,23 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"get-stdin-tests.ts"
]
}

View File

@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }