[internal-ip] Remove type definitions

This commit is contained in:
Dimitri Benin
2019-02-24 11:16:42 +01:00
parent 8816e2e88c
commit 709b506f4c
9 changed files with 6 additions and 97 deletions

View File

@@ -774,6 +774,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",

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;
}

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();

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"
]
}

View File

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

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>;

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;
});

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"
]
}

View File

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