From 712fa6533bc09bec9e09a99abd5cf44056bcaecb Mon Sep 17 00:00:00 2001 From: Ewout Stortenbeker Date: Sun, 1 Jan 2023 17:26:43 +0100 Subject: [PATCH] let `Api` inherit from `SimpleEventEmitter` --- src/api.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/api.ts b/src/api.ts index 6ffe1ac..7284bf6 100644 --- a/src/api.ts +++ b/src/api.ts @@ -1,4 +1,5 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ +import { SimpleEventEmitter } from './simple-event-emitter'; import type { TypedArrayLike } from './utils'; // eslint-disable-next-line @typescript-eslint/no-empty-interface @@ -280,9 +281,10 @@ export type TransactionLogFilter = ({ /** * Refactor to type/interface once acebase and acebase-client have been ported to TS */ -export abstract class Api { - // eslint-disable-next-line @typescript-eslint/no-empty-function - constructor() {} +export abstract class Api extends SimpleEventEmitter { + constructor() { + super(); + } /** * Provides statistics