Merge pull request #33352 from BendingBender/remove-internal-ip

[internal-ip] Remove type definitions
This commit is contained in:
Jesse Trinity
2019-02-26 13:27:33 -08:00
committed by GitHub
9 changed files with 6 additions and 97 deletions
+6
View File
@@ -780,6 +780,12 @@
"sourceRepoURL": "https://github.com/taye/interact.js",
"asOfVersion": "1.3.0"
},
{
"libraryName": "internal-ip",
"typingsPackageName": "internal-ip",
"sourceRepoURL": "https://github.com/sindresorhus/internal-ip",
"asOfVersion": "4.1.0"
},
{
"libraryName": "inversify",
"typingsPackageName": "inversify",
-12
View File
@@ -1,12 +0,0 @@
// Type definitions for internal-ip 3.0
// Project: https://github.com/sindresorhus/internal-ip#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export const v6: IPGetterFn;
export const v4: IPGetterFn;
export interface IPGetterFn { // tslint:disable-line:interface-name
(): Promise<string | null>;
sync(): string | null;
}
-15
View File
@@ -1,15 +0,0 @@
import * as internalIp from 'internal-ip';
internalIp.v6().then(ip => {
// $ExpectType string | null
ip;
});
// $ExpectType string | null
internalIp.v6.sync();
internalIp.v4().then(ip => {
// $ExpectType string | null
ip;
});
// $ExpectType string | null
internalIp.v4.sync();
-23
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",
"internal-ip-tests.ts"
]
}
-1
View File
@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }
-7
View File
@@ -1,7 +0,0 @@
// Type definitions for internal-ip 2.0
// Project: https://github.com/sindresorhus/internal-ip#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function v6(): Promise<string>;
export function v4(): Promise<string>;
-10
View File
@@ -1,10 +0,0 @@
import * as internalIp from 'internal-ip';
let str: string;
internalIp.v6().then(ip => {
str = ip;
});
internalIp.v4().then(ip => {
str = ip;
});
-28
View File
@@ -1,28 +0,0 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../../",
"typeRoots": [
"../../"
],
"paths": {
"internal-ip": [
"internal-ip/v2"
]
},
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"internal-ip-tests.ts"
]
}
-1
View File
@@ -1 +0,0 @@
{ "extends": "dtslint/dt.json" }