mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-18 06:47:02 +08:00
feat(nbstore): add awareness storage&sync&frontend (#9016)
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
||||
} from 'yjs';
|
||||
|
||||
import type { DocRecord, DocStorage } from '../storage';
|
||||
import type { DocSyncEngine } from '../sync/doc';
|
||||
import type { DocSync } from '../sync/doc';
|
||||
import { AsyncPriorityQueue } from '../utils/async-priority-queue';
|
||||
import { isEmptyUpdate } from '../utils/is-empty-update';
|
||||
import { throwIfAborted } from '../utils/throw-if-aborted';
|
||||
@@ -56,7 +56,7 @@ export class DocFrontend {
|
||||
|
||||
constructor(
|
||||
private readonly storage: DocStorage,
|
||||
private readonly sync: DocSyncEngine | null,
|
||||
private readonly sync: DocSync | null,
|
||||
readonly options: DocFrontendOptions = {}
|
||||
) {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user