ligo/tools/webide/packages/server/src/storage/interface.ts
Jev Björsell c119c44c13
Import webide into main ligo monorepo
When this is merged https://gitlab.com/ligolang/ligo-web-ide/ will be
marked as deprecated.

This MR does not hook up the webide build to the main CI. The CI
integration will come in a subsequent MR for the sake of making review
easier.
2020-02-06 19:04:18 -08:00

7 lines
184 B
TypeScript

export interface FileStorage {
read(filename: string): Promise<string>;
write(filename: string, content: string): Promise<void>;
}
export class FileNotFoundError extends Error {}