UNPKG

@synet/patterns

Version:

Robust, battle-tested collection of stable patterns used in Synet packages

9 lines (8 loc) 213 B
export interface IStorage<T> { exists(): boolean; create(data: T): void; get(id: string): T | null; delete(id: string): boolean; list(): T[]; update?(id: string, data: Partial<T>): void; }