chore: make cache private

Signed-off-by: waterplea <alexander@inkin.ru>
This commit is contained in:
waterplea
2024-06-21 15:53:19 +05:00
parent a2377e6206
commit 20cf2d3746

View File

@@ -26,7 +26,7 @@ export class PatchDB<T extends { [key: string]: any }> {
constructor( constructor(
private readonly source$: Observable<Update<T>[]>, private readonly source$: Observable<Update<T>[]>,
readonly cache$ = new BehaviorSubject<Dump<T>>({ private readonly cache$ = new BehaviorSubject<Dump<T>>({
id: 0, id: 0,
value: {} as T, value: {} as T,
}), }),