feat: some refactoring and cleanup

This commit is contained in:
Daniel Ledda
2022-05-25 23:49:20 +02:00
parent b3ee2af7c5
commit 7aa8941227
11 changed files with 184 additions and 137 deletions

4
lib/Subscriber.ts Normal file
View File

@@ -0,0 +1,4 @@
export type LEvent = string;
export default interface ISubscriber<T extends LEvent> {
notify(publisher: unknown, event: T): void;
}