mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
[wait-for-localhost] Remove types
This commit is contained in:
@@ -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",
|
||||
|
||||
26
types/wait-for-localhost/index.d.ts
vendored
26
types/wait-for-localhost/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user