mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-12 03:13:24 +01:00
20 lines
No EOL
400 B
TypeScript
20 lines
No EOL
400 B
TypeScript
import {Observable} from "lstream";
|
|
|
|
export interface StorageUpdateEvent {
|
|
path: string;
|
|
timestamp: number
|
|
}
|
|
|
|
export interface Storage extends Observable<StorageUpdateEvent> {
|
|
|
|
set(path: string, content: string): Promise<void>;
|
|
|
|
get(path: string): Promise<string>;
|
|
|
|
remove(path: string): Promise<void>;
|
|
|
|
list(path: string): Promise<string[]>;
|
|
|
|
exists(path: string): Promise<boolean>;
|
|
|
|
} |