-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
22 lines (22 loc) · 888 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
declare module 'ho-interval' {
class HOInterval {
static length(int: HOInterval): number;
static isValid(int: HOInterval): boolean;
static isValid(a: number, b?: number): boolean;
static unite(ints: HOInterval[]): HOInterval[];
static gaps(ints: HOInterval[]): HOInterval[];
static intersect(a: HOInterval, b: HOInterval): HOInterval;
public a: number;
public b: number;
constructor(other: HOInterval);
constructor(a: number, b: number);
public isCloseTo(other: HOInterval): boolean;
public isEqualsTo(other: HOInterval): boolean;
public isIntersect(other: HOInterval): boolean;
public isIntersect(x: number, y?: number): boolean;
public unite(other: HOInterval): HOInterval;
public intersect(other: any): HOInterval;
public add(val: number): HOInterval;
}
export = HOInterval;
}