feat: fix private prefix

This commit is contained in:
DarkSky
2022-08-04 18:55:23 +08:00
parent c63d5da4df
commit 1a43ce4d02
11 changed files with 65 additions and 64 deletions

View File

@@ -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>;

View File

@@ -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>
>;

View File

@@ -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,