chore: typo

This commit is contained in:
2024-01-08 15:15:48 +00:00
parent 5d3abc553a
commit 927718e236

View File

@ -29,7 +29,7 @@ export type OnEventCallbackRelease = () => void;
export type OnEoseCallback = (c: string) => void; export type OnEoseCallback = (c: string) => void;
export type OnEoseCallbackRelease = () => void; export type OnEoseCallbackRelease = () => void;
export interface NostrStoreEvents { export interface NosteStoreEvents {
progress: (loading: boolean) => void; progress: (loading: boolean) => void;
event: (evs: Readonly<Array<TaggedNostrEvent>>) => void; event: (evs: Readonly<Array<TaggedNostrEvent>>) => void;
} }
@ -37,7 +37,7 @@ export interface NostrStoreEvents {
/** /**
* Generic note store interface * Generic note store interface
*/ */
export abstract class NoteStore extends EventEmitter<NostrStoreEvents> { export abstract class NoteStore extends EventEmitter<NosteStoreEvents> {
abstract add(ev: Readonly<TaggedNostrEvent> | Readonly<Array<TaggedNostrEvent>>): void; abstract add(ev: Readonly<TaggedNostrEvent> | Readonly<Array<TaggedNostrEvent>>): void;
abstract clear(): void; abstract clear(): void;
abstract getSnapshotData(): NoteStoreSnapshotData | undefined; abstract getSnapshotData(): NoteStoreSnapshotData | undefined;