16 lines
396 B
TypeScript
16 lines
396 B
TypeScript
type Data = Record<string, any>;
|
|
export declare class MoonlinkDatabase {
|
|
data: Data;
|
|
id: string;
|
|
constructor(clientId: string);
|
|
set<T>(key: string, value: T): void;
|
|
get<T>(key: string): T | undefined;
|
|
push<T>(key: string, value: T): void;
|
|
delete(key: string): boolean;
|
|
private updateData;
|
|
private getFilePath;
|
|
fetch(): void;
|
|
private save;
|
|
}
|
|
export {};
|