From f21b562836a4817313dad6bca1122b6ff5edcbb1 Mon Sep 17 00:00:00 2001 From: Ali Mihandoost Date: Wed, 6 Nov 2024 14:00:09 +0330 Subject: [PATCH] fix(observable): add AlwatrLogger type to logger_ property --- packages/observable/src/observable.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/observable/src/observable.ts b/packages/observable/src/observable.ts index ad568ed..591e5c6 100644 --- a/packages/observable/src/observable.ts +++ b/packages/observable/src/observable.ts @@ -1,4 +1,4 @@ -import {createLogger, packageTracer} from '@alwatr/nanolib'; +import {createLogger, packageTracer, type AlwatrLogger} from '@alwatr/nanolib'; import type {SubscribeOptions, ListenerCallback, Observer, SubscribeResult, AlwatrObservableInterface} from './type.js'; @@ -11,7 +11,7 @@ export interface AlwatrObservableConfig { export abstract class AlwatrObservable implements AlwatrObservableInterface { protected name_; - protected logger_; + protected logger_: AlwatrLogger; protected message_?: T; protected observers__: Observer[] = [];