From 6d155c6d27e9bd6e3610fa4ccd770aea31823f16 Mon Sep 17 00:00:00 2001 From: Ivan Cheremnov Date: Thu, 1 Jun 2017 13:23:09 +0700 Subject: [PATCH] Add missing definitions (#16878) --- types/ip/index.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/types/ip/index.d.ts b/types/ip/index.d.ts index 0e3bb7bd14..602a71eed9 100644 --- a/types/ip/index.d.ts +++ b/types/ip/index.d.ts @@ -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. *