[wait-for-localhost] Remove types

This commit is contained in:
Dimitri Benin
2019-02-27 17:23:37 +01:00
parent 1003ffa91f
commit d3c48c7844
5 changed files with 6 additions and 55 deletions

View File

@@ -1800,6 +1800,12 @@
"sourceRepoURL": "https://github.com/vuejs/vue-router",
"asOfVersion": "2.0.0"
},
{
"libraryName": "wait-for-localhost",
"typingsPackageName": "wait-for-localhost",
"sourceRepoURL": "https://github.com/sindresorhus/wait-for-localhost",
"asOfVersion": "3.1.0"
},
{
"libraryName": "webcola",
"typingsPackageName": "webcola",

View File

@@ -1,26 +0,0 @@
// Type definitions for wait-for-localhost 3.0
// Project: https://github.com/sindresorhus/wait-for-localhost#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = waitForLocalhost;
/**
* Wait for localhost to be ready.
*/
declare function waitForLocalhost(options?: waitForLocalhost.Options): Promise<void>;
declare namespace waitForLocalhost {
interface Options {
/**
* @default 80
*/
port?: number;
/**
* Use the `GET` HTTP-method instead of `HEAD` to check if the server is running.
* @default false
*/
useGet?: boolean;
}
}

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",
"wait-for-localhost-tests.ts"
]
}

View File

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

View File

@@ -1,5 +0,0 @@
import waitForLocalhost = require('wait-for-localhost');
waitForLocalhost(); // $ExpectType Promise<void>
waitForLocalhost({ port: 8080 }); // $ExpectType Promise<void>
waitForLocalhost({ useGet: true }); // $ExpectType Promise<void>