@terbiumos/tfs
Version:
The drop in Filer replacement you have been waiting for. Completely Typed and Built with TypeScript
34 lines (33 loc) • 766 B
TypeScript
import { Buffer } from "buffer";
import { FS } from "./fs";
import { Path } from "./path";
import { Shell } from "./shell";
/**
* The TFS File System Library
*/
export declare class TFS {
handle: FileSystemDirectoryHandle;
fs: FS;
path: Path;
buffer: typeof Buffer;
shell: Shell;
version: string;
sh?: typeof Shell;
constructor(handle: FileSystemDirectoryHandle);
/**
* Creates a new instance of TFS
* @returns {Promise<TFS>} Instance of TFS
*/
static init(): Promise<TFS>;
/**
* Initializes TFS for use in a service worker
* @returns {void}
* @example
* // In your service worker file
* importScripts("/tfs/tfs.js");
* tfs.initSw();
* // TFS is now defined on self
*/
static initSw(): void;
}
//# sourceMappingURL=index.d.ts.map