clarify type name

This commit is contained in:
Ladd Hoffman 2025-01-02 21:22:29 -06:00
parent 6e0dccdfea
commit f1fcd97fe2
1 changed files with 3 additions and 3 deletions

View File

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