fix: IStore should extend EventEmitter

This commit is contained in:
Derrick Hammer 2023-09-15 22:10:36 -04:00
parent 97510bd892
commit 9f00d8fec8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ import { BeaconConfig } from "@lodestar/config";
import { GenesisData, LightClientUpdate } from "#types.js"; import { GenesisData, LightClientUpdate } from "#types.js";
import { ProverRequestCallback } from "#client/index.js"; import { ProverRequestCallback } from "#client/index.js";
import BaseClient from "#baseClient.js"; import BaseClient from "#baseClient.js";
import { EventEmitter } from "events";
export interface IProver { export interface IProver {
get callback(): ProverRequestCallback; get callback(): ProverRequestCallback;
@ -12,7 +13,7 @@ export interface IProver {
): Promise<LightClientUpdate[]>; ): Promise<LightClientUpdate[]>;
} }
export interface IStore { export interface IStore extends EventEmitter {
addUpdate(period: number, update: LightClientUpdate): void; addUpdate(period: number, update: LightClientUpdate): void;
getUpdate(period: number): Uint8Array; getUpdate(period: number): Uint8Array;
hasUpdate(period: number): boolean; hasUpdate(period: number): boolean;