Function: directoryStorage()
Documentation / @wtf/platform / storage / directoryStorage
function directoryStorage<D>(directory): object;Defined in: packages/platform/src/storage.ts:36
A navigator.storage whose root is directory, each call: a folder in memory, for a test, or
any other.
const storage = directoryStorage(folder)const root = await storage.getDirectory()Type Parameters
| Type Parameter |
|---|
D extends FileSystemDirectoryHandle |
Parameters
| Parameter | Type |
|---|---|
directory | D |
Returns
object
| Name | Type | Defined in |
|---|---|---|
getDirectory() | () => Promise<D> | packages/platform/src/storage.ts:38 |
