-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
26 lines (26 loc) · 1005 Bytes
/
index.ts
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
declare module "mazeworldwide.db" {
export class Database {
constructor(file?: string);
private file: string;
public setBackup(filePath: string): void;
public loadBackup(): void;
public set(data: string, value: any): void;
public fetch(data: string): any;
public get(data: string): any;
public destroy(): object;
public remove(data: string): void;
public add(data: string, value: number): void;
public subtract(data: string, value: number): void;
public has(data: string): boolean;
public clear(): void;
public fetchAll(): object;
public all(): object;
public deleteEach(data: string): void;
public push(array: string, value: any): void;
public arrayFetch(array: any, number: any): void;
public objectFetch(object: any, key: any): void;
public math(data: any, operator: any, value: number): void;
public delete(array: string, index: number | string): void;
public deleteKey(object: string, key: string): void;
}
}