Installation
npm install --save @types/ipcheck
Summary
This package contains type definitions for ipcheck (https://github.com/gosquared/ipcheck).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ipcheck.
index.d.ts
declare const ipcheck: ipcheck.IPCheckStatic;
export = ipcheck;
export as namespace ipcheck;
declare namespace ipcheck {
interface IPCheck {
address: number[];
input: string;
ipv: 4 | 6 | 0;
mask: number;
valid: boolean;
match(cidr: IPCheck | string): boolean;
}
interface IPCheckConstructor {
new(input: string): IPCheck;
}
interface IPCheckStatic extends IPCheckConstructor {
match(ip: IPCheck | string, cidr: IPCheck | string): boolean;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Ben Grynhaus.