Skip to content

OpfsEffectsDeps

Defined in: packages/client/src/opfs-effects.ts:30

The injectable seam so Bun unit tests fake the OPFS root (there is no real OPFS there).

optional getRoot?: () => Promise<DirLike>

Defined in: packages/client/src/opfs-effects.ts:36

The OPFS root getter. Omit in production: the default reads navigator.storage.getDirectory off globalThis (structural, no DOM lib). Absent API → the delete effects are no-ops, observe is "unobservable", and the create effects throw (they are only reached in the opfs engine home).

Promise<DirLike>