AFFiNE/packages/storage/index.js

11 lines
287 B
JavaScript

import { createRequire } from 'node:module';
const require = createRequire(import.meta.url);
/** @type {import('.')} */
const binding = require('./storage.node');
export const Storage = binding.Storage;
export const Workspace = binding.Workspace;
export const Document = binding.Doc;