Mid-Simulator/node_modules/@replit/database/index.d.ts
2022-04-18 01:14:39 +00:00

15 lines
453 B
TypeScript

export class Client {
constructor(key?: string);
// Native
public get(key: string, options?: { raw?: boolean }): Promise<unknown>;
public set(key: string, value: any): Client;
public delete(key: string): Client;
public list(prefix?: string): Promise<string[]>;
// Dynamic
public empty(): Client;
public getAll(): Record<any, any>;
public setAll(obj: Record<any, any>): Client;
public deleteMultiple(...args: string[]): Client;
}