mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 21:27:20 +00:00
feat: fix private prefix
This commit is contained in:
@@ -26,11 +26,11 @@ export class AbstractBlock<
|
||||
B extends BlockInstance<C>,
|
||||
C extends ContentOperation
|
||||
> {
|
||||
readonly _id: string;
|
||||
private readonly _id: string;
|
||||
readonly #block: BlockInstance<C>;
|
||||
readonly _history: HistoryManager;
|
||||
readonly _root?: AbstractBlock<B, C>;
|
||||
readonly _parentListener: Map<string, BlockListener>;
|
||||
private readonly _history: HistoryManager;
|
||||
private readonly _root?: AbstractBlock<B, C>;
|
||||
private readonly _parentListener: Map<string, BlockListener>;
|
||||
|
||||
_parent?: AbstractBlock<B, C>;
|
||||
|
||||
|
||||
@@ -51,19 +51,19 @@ export class BaseBlock<
|
||||
B extends BlockInstance<C>,
|
||||
C extends ContentOperation
|
||||
> extends AbstractBlock<B, C> {
|
||||
readonly _exporters?: Exporters;
|
||||
readonly _contentExportersGetter: () => Map<
|
||||
private readonly _exporters?: Exporters;
|
||||
private readonly _contentExportersGetter: () => Map<
|
||||
string,
|
||||
ReadableContentExporter<string, any>
|
||||
>;
|
||||
readonly _metadataExportersGetter: () => Map<
|
||||
private readonly _metadataExportersGetter: () => Map<
|
||||
string,
|
||||
ReadableContentExporter<
|
||||
Array<[string, number | string | string[]]>,
|
||||
any
|
||||
>
|
||||
>;
|
||||
readonly _tagExportersGetter: () => Map<
|
||||
private readonly _tagExportersGetter: () => Map<
|
||||
string,
|
||||
ReadableContentExporter<string[], any>
|
||||
>;
|
||||
|
||||
@@ -107,18 +107,18 @@ export class BlockIndexer<
|
||||
B extends BlockInstance<C>,
|
||||
C extends ContentOperation
|
||||
> {
|
||||
readonly _adapter: A;
|
||||
readonly _idb: BlockIdbInstance;
|
||||
private readonly _adapter: A;
|
||||
private readonly _idb: BlockIdbInstance;
|
||||
|
||||
readonly _blockIndexer: DocumentIndexer<IndexMetadata>;
|
||||
readonly _blockMetadata: LRUCache<string, QueryMetadata>;
|
||||
readonly _eventBus: BlockEventBus;
|
||||
private readonly _blockIndexer: DocumentIndexer<IndexMetadata>;
|
||||
private readonly _blockMetadata: LRUCache<string, QueryMetadata>;
|
||||
private readonly _eventBus: BlockEventBus;
|
||||
|
||||
readonly _blockBuilder: (
|
||||
private readonly _blockBuilder: (
|
||||
block: BlockInstance<C>
|
||||
) => Promise<BaseBlock<B, C>>;
|
||||
|
||||
readonly _delayIndex: { documents: Map<string, BaseBlock<B, C>> };
|
||||
private readonly _delayIndex: { documents: Map<string, BaseBlock<B, C>> };
|
||||
|
||||
constructor(
|
||||
adapter: A,
|
||||
|
||||
Reference in New Issue
Block a user