chore: fix warnings

This commit is contained in:
Kieran 2023-03-30 14:32:27 +01:00
parent d43b55c9a9
commit 625d3c3d5b
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -14,7 +14,7 @@ export const EmptySnapshot = {
// empty
},
loading: () => true,
add: (ev: Readonly<TaggedRawEvent> | Readonly<Array<TaggedRawEvent>>) => {
add: () => {
// empty
},
} as StoreSnapshot<FlatNoteStore>;
@ -121,29 +121,6 @@ export abstract class HookedNoteStore<TSnapshot extends NoteStoreSnapshotData> i
}
}
export type Node = Map<u256, Array<NodeBranch>>;
export type NodeBranch = TaggedRawEvent | Node;
/**
* Tree note store
*/
export class NostrEventTree extends HookedNoteStore<TaggedRawEvent> {
base: Node = new Map();
#nodeIndex: Map<u256, Node> = new Map();
add(ev: TaggedRawEvent | Array<TaggedRawEvent>) {
throw new Error("Not implemented");
}
clear(): void {
throw new Error("Method not implemented.");
}
takeSnapshot(): TaggedRawEvent {
throw new Error("Method not implemented.");
}
}
/**
* A simple flat container of events with no duplicates
*/