Skip to content

Instantly share code, notes, and snippets.

@rohmanhm
Created January 12, 2019 09:32
Show Gist options
  • Save rohmanhm/f6220741ff1f15686d152fb47cd20f6f to your computer and use it in GitHub Desktop.
Save rohmanhm/f6220741ff1f15686d152fb47cd20f6f to your computer and use it in GitHub Desktop.
// 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