mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
add contains fn
This commit is contained in:
3
ip/ip.d.ts
vendored
3
ip/ip.d.ts
vendored
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user