UNPKG

@shopify/cli-kit

Version:

A set of utilities, interfaces, and models that are common across all the platform features

21 lines (20 loc) 750 B
interface GetTCPPortOptions { waitTimeInSeconds?: number; maxTries?: number; } /** * Returns an available port in the current environment. * * @param preferredPort - Number of the preferred port to be used if available. * @param options - Extra configuration for getting TCP ports. * @returns A promise that resolves with an availabe port. */ export declare function getAvailableTCPPort(preferredPort?: number, options?: GetTCPPortOptions): Promise<number>; /** * Checks if a port is available. * * @param portNumber - The port number to check. * @returns A promise that resolves with a boolean indicating if the port is available. */ export declare function checkPortAvailability(portNumber: number): Promise<boolean>; export {};