Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/detect-port) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Installation
npm install --save @types/detect-port
Summary
This package contains type definitions for detect-port (https://github.com/node-modules/detect-port).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/detect-port.
index.d.ts
// Type definitions for detect-port 1.3
// Project: https://github.com/node-modules/detect-port
// Definitions by: Ivan Medina <https://github.com/ivandevp>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
type DetectPortCallback = (err: Error, _port: number) => void;
interface PortConfig {
port?: number;
hostname?: string | undefined;
callback?: DetectPortCallback | undefined;
}
interface DetectPort {
(port: number | PortConfig | undefined, callback: DetectPortCallback): void;
(port?: number | PortConfig): Promise<number>;
}
declare const detectPort: DetectPort;
export = detectPort;
Additional Details
- Last updated: Sun, 28 May 2023 00:02:52 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Ivan Medina.