Installation
npm install --save @types/port-numbers
Summary
This package contains type definitions for port-numbers (https://github.com/silverwind/port-numbers#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/port-numbers.
index.d.ts
export interface ServiceInfo {
readonly name: string;
readonly description: string;
}
export interface PortInfo {
readonly port: number;
readonly protocol: string;
readonly description: string;
}
export function getService(port: number, protocol?: string): ServiceInfo | null;
export function getPort(service: string, protocol?: string): PortInfo | null;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Alex Bradley.