Skip to content

Commit

Permalink
Added global
Browse files Browse the repository at this point in the history
  • Loading branch information
james-pre committed Nov 12, 2024
1 parent f5a61ac commit 8c1ed21
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ export * from './emulation/index.js';
import * as fs from './emulation/index.js';
export { fs };
export default fs;

declare global {
/**
* Global FS emulation. Do not use unless absolutely needed.
* @hidden
*/
// eslint-disable-next-line no-var
var __zenfs__: typeof fs;
}
globalThis.__zenfs__ = fs;

0 comments on commit 8c1ed21

Please sign in to comment.