diff --git a/lib/ipaddr.js.d.ts b/lib/ipaddr.js.d.ts index bdd0737..882fa96 100644 --- a/lib/ipaddr.js.d.ts +++ b/lib/ipaddr.js.d.ts @@ -26,8 +26,8 @@ declare module "ipaddr.js" { export function parse(addr: string): IPv4 | IPv6; export function parseCIDR(mask: string): [IPv4 | IPv6, number]; export function process(address: string): IPv4 | IPv6; - export function subnetMatch(addr: IPv4, rangeList: RangeList, defaultName?: string): boolean; - export function subnetMatch(addr: IPv6, rangeList: RangeList, defaultName?: string): boolean; + export function subnetMatch(addr: IPv4, rangeList: RangeList, defaultName?: string): string; + export function subnetMatch(addr: IPv6, rangeList: RangeList, defaultName?: string): string; export class IPv4 extends IP { static broadcastAddressFromCIDR(addr: string): IPv4; @@ -44,7 +44,7 @@ declare module "ipaddr.js" { match(addr: IPv4, bits: number): boolean; match(mask: [IPv4, number]): boolean; range(): IPv4Range; - subnetMatch(rangeList: RangeList, defaultName?: string): boolean; + subnetMatch(rangeList: RangeList, defaultName?: string): string; toIPv4MappedAddress(): IPv6; } @@ -62,10 +62,10 @@ declare module "ipaddr.js" { match(addr: IPv6, bits: number): boolean; match(mask: [IPv6, number]): boolean; range(): IPv6Range; - subnetMatch(rangeList: RangeList, defaultName?: string): boolean; + subnetMatch(rangeList: RangeList, defaultName?: string): string; toIPv4Address(): IPv4; } } export = Address; -} \ No newline at end of file +}