Created
January 12, 2019 09:32
-
-
Save rohmanhm/f6220741ff1f15686d152fb47cd20f6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Type definitions for get-port 4.0 | |
| // Project: https://github.com/sindresorhus/get-port | |
| // Definitions by: York Yao <https://github.com/plantain-00> | |
| // BendingBender <https://github.com/BendingBender> | |
| // MH Rohman <https://github.com/rohmanhm> | |
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
| declare module 'get-port' { | |
| type Options = { | |
| port?: number | ReadonlyArray<number>; | |
| host?: string; | |
| } | |
| type GetPortFn = (options?: Options) => Promise<number> | |
| type GetPortExport = GetPortFn | |
| const GetPort: GetPortExport | |
| export = GetPort | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment