mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Add missing definitions (#16878)
This commit is contained in:
committed by
Mohamed Hegazy
parent
2c2b9e42c8
commit
6d155c6d27
Vendored
+10
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user