mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added types for 'ipcheck' * Fixed tests got be according to linting guidelines * Made tsconfig stricter * Standard tslint file * Standartize ipcheck.d.ts * tslint disable in .d.ts file * disabled interface-name rule
20 lines
320 B
TypeScript
20 lines
320 B
TypeScript
import * as ipcheck from "ipcheck";
|
|
|
|
ipcheck.match(1, 1); // $ExpectError
|
|
ipcheck.match("", 1); // $ExpectError
|
|
ipcheck.match(1, ""); // $ExpectError
|
|
|
|
new ipcheck(1); // $ExpectError
|
|
|
|
const ip = new ipcheck("");
|
|
|
|
// $ExpectError
|
|
if (ip.ipv === 1) {
|
|
}
|
|
|
|
// $ExpectError
|
|
if (ip.ipv === 1) {
|
|
}
|
|
|
|
ip.match(1); // $ExpectError
|