Add missing definitions (#16878)

This commit is contained in:
Ivan Cheremnov
2017-05-31 23:23:09 -07:00
committed by Mohamed Hegazy
parent 2c2b9e42c8
commit 6d155c6d27
+10
View File
@@ -75,6 +75,16 @@ declare module "ip" {
**/
export function isLoopback(ip: string): boolean;
/**
* Check whether an IP is a IPv4 address.
**/
export function isV4Format(ip: string): boolean;
/**
* Check whether an IP is a IPv6 address.
**/
export function isV6Format(ip: string): boolean;
/**
* Get the loopback address for an IP family.
*