-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArrayDatabase.d.ts
More file actions
29 lines (29 loc) · 969 Bytes
/
ArrayDatabase.d.ts
File metadata and controls
29 lines (29 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
export declare class ArrayDatabase<T = any> {
readonly id: string;
static readonly PROPERTY_MAX_SIZE = 12000;
static readonly PREFIX = "array";
private readonly cache;
private cacheLoaded;
private currentKeyIndex;
constructor(id: string);
getAll(): T[];
add(value: T): this;
has(value: T): boolean;
clear(): void;
values(): IterableIterator<T>;
find(callbackfn: (value: T) => boolean): T | undefined;
filter(callbackfn: (value: T) => boolean): T[];
map<U>(callbackfn: (value: T) => U): U[];
forEach(callbackfn: (value: T) => void): void;
some(callbackfn: (value: T) => boolean): boolean;
every(callbackfn: (value: T) => boolean): boolean;
[Symbol.iterator](): IterableIterator<T>;
get size(): number;
private trySave;
private load;
private unload;
private get keyPrefix();
private get currentKey();
private get indexKey();
get [Symbol.toStringTag](): string;
}