@types/port-numbers
TypeScript icon, indicating that this package has built-in type declarations

5.0.2 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/port-numbers

      Weekly Downloads

      93

      Version

      5.0.2

      License

      MIT

      Unpacked Size

      3.32 kB

      Total Files

      5

      Last publish

      Collaborators

      • types