Make storage async
All checks were successful
Setup testing environment and test the code / build (push) Successful in 1m4s
Publish to NPM / build-and-publish (release) Successful in 41s

This commit is contained in:
2026-04-08 18:10:46 +02:00
parent d7422efcf0
commit 7d50692ece
11 changed files with 29 additions and 29 deletions

View File

@@ -1,6 +1,6 @@
export interface DatabaseAPI {
set(collection: string, key: string, value: any): void;
get(collection: string, key: string): string;
get(collection: string, key: string): Promise<string>;
delete(collection: string, key: string): void;
flush(): void;
}

View File

@@ -1,6 +1,6 @@
export interface KeyringAPI {
set(key: string, value: any): void;
get(key: string): string;
getAll(): string[];
get(key: string): Promise<string>;
getAll(): Promise<string[]>;
delete(key: string): void;
}

View File

@@ -1,6 +1,6 @@
export interface KeyValueAPI {
set(key: string, value: any): void;
get(key: string): string;
get(key: string): Promise<string>;
delete(key: string): void;
flush(): void;
}