mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Merge pull request #34734 from nwtgck/remove-get-stdin
[get-stdin] Remove the type definition of get-stdin
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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()}`);
|
||||
});
|
||||
13
types/get-stdin/index.d.ts
vendored
13
types/get-stdin/index.d.ts
vendored
@@ -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;
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user