mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-09 19:50:08 +00:00
[internal-ip] Remove type definitions
This commit is contained in:
@@ -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",
|
||||
|
||||
12
types/internal-ip/index.d.ts
vendored
12
types/internal-ip/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
@@ -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();
|
||||
@@ -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 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
7
types/internal-ip/v2/index.d.ts
vendored
7
types/internal-ip/v2/index.d.ts
vendored
@@ -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>;
|
||||
@@ -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;
|
||||
});
|
||||
@@ -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 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user