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.