@fungi.computer/oyster 0.30.1 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/files.d.ts CHANGED
@@ -31,6 +31,8 @@ export type FileSource = Readonly<{
31
31
  read(path: string): Promise<Uint8Array | null>;
32
32
  /** Create or replace a file. */
33
33
  write(path: string, content: Uint8Array): Promise<void>;
34
+ /** Delete one file; resolves when nothing is left at the path. */
35
+ delete(path: string): Promise<void>;
34
36
  /** Create a directory. */
35
37
  mkdir(path: string): Promise<void>;
36
38
  /** Write `content` only if the file still holds `expectedContent`. */