indexeddb-fs
Version:
An 'fs' kind of library dedicated to the browser
9 lines (8 loc) • 419 B
TypeScript
import { IFileEntry } from "../../../types";
export interface IRenameFileInstanceProps {
exists: (fullPath: string) => Promise<boolean>;
isFile: (fullPath: string) => Promise<boolean>;
removeFile: (fullPath: string) => Promise<void>;
rootDirectoryName: string;
updateFileDetails: <TData = unknown>(fullPath: string, newFileEntry: Partial<IFileEntry<TData>>) => Promise<IFileEntry<TData>>;
}