diff --git a/baseStore.ts b/baseStore.ts index 9fc2110..c4db262 100644 --- a/baseStore.ts +++ b/baseStore.ts @@ -1,17 +1,17 @@ -export type BaseStoreListenerInit = { +export type BaseStoreListenerInit> = { store: Derived; - event: string; + event: Event; }; -export type BaseStoreListener = ( - init: BaseStoreListenerInit, +export type BaseStoreListener> = ( + init: BaseStoreListenerInit, ) => void; -export declare class BaseStore { +export declare class BaseStore { constructor(); - public addChangeListener(listener: BaseStoreListener): void; - public removeChangeListener(listener: BaseStoreListener): void; + public addChangeListener(listener: BaseStoreListener): void; + public removeChangeListener(listener: BaseStoreListener): void; public emitChange(event: string): void; public get listenersCount(): number; - private _onChangeListeners: BaseStoreListener[]; + private _onChangeListeners: BaseStoreListener[]; }