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

1.0.3 • Public • Published

Installation

npm install --save @types/requires-port

Summary

This package contains type definitions for requires-port (https://github.com/unshiftio/requires-port).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/requires-port.

index.d.ts

export = requiresPort;

declare function requiresPort(port: string | number, protocol: requiresPort.Protocol): boolean;
declare function requiresPort(port: string | number, protocol: string): boolean; // tslint:disable-line:unified-signatures

declare namespace requiresPort {
    type Protocol = "http" | "https" | "ws" | "wss" | "ftp" | "gopher" | "file";
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/requires-port

Weekly Downloads

6,582

Version

1.0.3

License

MIT

Unpacked Size

3.31 kB

Total Files

5

Last publish

Collaborators

  • types