change project structure to remove namespaces
This commit is contained in:
26
src/bitarray/types.ts
Normal file
26
src/bitarray/types.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
export interface BitArray extends Iterable<boolean> {
|
||||
readonly length: number;
|
||||
|
||||
isFull(): boolean;
|
||||
isEmpty(): boolean;
|
||||
|
||||
get(index: number): boolean;
|
||||
set(index: number, value: boolean): void;
|
||||
fill(value: boolean): void;
|
||||
|
||||
and(other: BitArray): BitArray;
|
||||
or(other: BitArray): BitArray;
|
||||
xor(other: BitArray): BitArray;
|
||||
not(): BitArray;
|
||||
|
||||
contains(other: BitArray): boolean;
|
||||
intersects(other: BitArray): boolean;
|
||||
|
||||
slice(offset: number, length: number): BitArray;
|
||||
copy(): BitArray;
|
||||
toArray(): boolean[];
|
||||
|
||||
equals(other: BitArray): boolean;
|
||||
|
||||
toString(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user