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