mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08: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