add contains fn

This commit is contained in:
Moshe Atlow
2016-09-29 22:56:24 +03:00
committed by GitHub
parent 067ef46798
commit 71ae898a05

3
ip/ip.d.ts vendored
View File

@@ -14,6 +14,7 @@ interface SubnetInfo {
subnetMaskLength: number;
numHosts: number;
length: number;
contains(ip: string): boolean;
}
declare module "ip" {
@@ -112,4 +113,4 @@ declare module "ip" {
* @param cidr CIDR address.
*/
export function cidrSubnet(cidr: string): SubnetInfo;
}
}