clarify type name
This commit is contained in:
parent
6e0dccdfea
commit
f1fcd97fe2
|
@ -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`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue