mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #27964 from NoxWings/update/get-port
Update get-port to 4.0
This commit is contained in:
@@ -7,3 +7,7 @@ getPort().then(port => {
|
||||
getPort({ port: 3000 }).then(port => {
|
||||
console.log(port);
|
||||
});
|
||||
|
||||
getPort({ port: [3000, 3001] }).then(port => {
|
||||
console.log(port);
|
||||
});
|
||||
|
||||
Vendored
+2
-2
@@ -1,9 +1,9 @@
|
||||
// Type definitions for get-port 3.2
|
||||
// Type definitions for get-port 4.0
|
||||
// Project: https://github.com/sindresorhus/get-port
|
||||
// Definitions by: York Yao <https://github.com/plantain-00/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module "get-port" {
|
||||
var getPort: (options?: { port?: number, host?: string }) => PromiseLike<number>
|
||||
var getPort: (options?: { port?: number | ReadonlyArray<number>, host?: string }) => PromiseLike<number>
|
||||
export = getPort;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user