UNPKG

@types/requires-port

Version:
28 lines (20 loc) 985 B
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/requires-port/index.d.ts) ````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](https://github.com/BendingBender).