UNPKG

360 BTypeScriptView Raw
1export = requiresPort;
2
3declare function requiresPort(port: string | number, protocol: requiresPort.Protocol): boolean;
4declare function requiresPort(port: string | number, protocol: string): boolean; // tslint:disable-line:unified-signatures
5
6declare namespace requiresPort {
7 type Protocol = "http" | "https" | "ws" | "wss" | "ftp" | "gopher" | "file";
8}