code-server/packages/app/common/src/storage.ts

6 lines
131 B
TypeScript

export interface StorageProvider {
set<T>(key: string, value: T): Promise<void>;
get<T>(key: string): Promise<T | undefined>;
}