diff --git a/src/collection-abstract.ts b/src/collection-abstract.ts index d422e3d..5b0ed28 100644 --- a/src/collection-abstract.ts +++ b/src/collection-abstract.ts @@ -8,11 +8,11 @@ import {RhizomeNode} from "./node"; import {DomainEntityID} from "./types"; const debug = Debug('rz:abstract-collection'); -export abstract class Collection { +export abstract class Collection { rhizomeNode?: RhizomeNode; name: string; eventStream = new EventEmitter(); - lossy?: T; + lossy?: View; constructor(name: string) { this.name = name; @@ -37,7 +37,7 @@ export abstract class Collection { }); // TODO: Fix this - rhizomeNode.httpServer.httpApi.serveCollection(this); + rhizomeNode.httpServer.httpApi.serveCollection(this); debug(`[${this.rhizomeNode.config.peerId}]`, `Connected ${this.name} to rhizome`); }