@types/ipcheck
TypeScript icon, indicating that this package has built-in type declarations

0.1.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ipcheck

Weekly Downloads

437

Version

0.1.3

License

MIT

Unpacked Size

3.58 kB

Total Files

5

Last publish

Collaborators

  • types