mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-07 20:31:33 +08:00
refactor(editor): reorg code structure of store package (#9525)
This commit is contained in:
@@ -1,4 +1,10 @@
|
||||
export { createAutoIncrementIdGenerator } from '../utils/id-generator.js';
|
||||
import type { IdGenerator } from '../utils/id-generator.js';
|
||||
|
||||
export * from './test-doc.js';
|
||||
export * from './test-meta.js';
|
||||
export * from './test-workspace.js';
|
||||
|
||||
export function createAutoIncrementIdGenerator(): IdGenerator {
|
||||
let i = 0;
|
||||
return () => (i++).toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user