summaryrefslogtreecommitdiff
path: root/src/database.model.ts
blob: 89e3a44a913efb901cf0312281b63329c73c8a54 (plain)
1
2
3
4
5
6
7
export interface DatabaseInterface {
  init(): Promise<void>;
  fetch(path: string): Promise<Object>;
  write(path: string, toWrite: Object): Promise<void>;
  flush(): Promise<void>;
  toString(): Object;
}