Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
425 B
19 lines
425 B
2 years ago
|
export interface Options {
|
||
|
/**
|
||
|
* A preferred port or an array of preferred ports to use.
|
||
|
*/
|
||
|
readonly port?: number | ReadonlyArray<number>,
|
||
|
|
||
|
/**
|
||
|
* The host on which port resolution should be performed. Can be either an IPv4 or IPv6 address.
|
||
|
*/
|
||
|
readonly host?: string;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get an available TCP port number.
|
||
|
*
|
||
|
* @returns Port number.
|
||
|
*/
|
||
|
export default function getPort(options?: Options): Promise<number>;
|