From 461bd92c9a1b2ea106e9be4de695e5087799da0a Mon Sep 17 00:00:00 2001 From: "S. MohammadMahdi Zamanian" Date: Wed, 6 Mar 2024 10:13:09 +0330 Subject: [PATCH] fix(mixins): exports path --- packages/mixins/src/lib/logger.ts | 13 +++++++------ packages/mixins/src/lib/signal.ts | 6 +++--- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/mixins/src/lib/logger.ts b/packages/mixins/src/lib/logger.ts index 3529088..b25386a 100644 --- a/packages/mixins/src/lib/logger.ts +++ b/packages/mixins/src/lib/logger.ts @@ -9,7 +9,7 @@ export declare class LoggerMixinInterface extends LitElement { } export function LoggerMixin>( - superClass: T + superClass: T ): Constructor & T { class LoggerMixinClass extends superClass { protected log = new GecutLogger(`<${this.tagName.toLowerCase()}>`); @@ -40,9 +40,9 @@ export function LoggerMixin>( } override requestUpdate( - name?: PropertyKey | undefined, - oldValue?: unknown, - options?: PropertyDeclaration | undefined + name?: PropertyKey | undefined, + oldValue?: unknown, + options?: PropertyDeclaration | undefined ): void { this?.log?.methodArgs?.('requestUpdate', { name, @@ -73,7 +73,8 @@ export function LoggerMixin>( if (this._$firstUpdated) { this.log.timeEnd?.('update-time'); - } else { + } + else { this._$firstUpdated = true; } @@ -87,5 +88,5 @@ export function LoggerMixin>( } return LoggerMixinClass as unknown as Constructor & - T; + T; } diff --git a/packages/mixins/src/lib/signal.ts b/packages/mixins/src/lib/signal.ts index b2e21cf..8593361 100644 --- a/packages/mixins/src/lib/signal.ts +++ b/packages/mixins/src/lib/signal.ts @@ -13,7 +13,7 @@ export declare class SignalMixinInterface extends LitElement { export type MixinReturn = Constructor & T; export function SignalMixin>( - superClass: T + superClass: T ): MixinReturn { class SignalMixinClass extends superClass { // eslint-disable-next-line @typescript-eslint/no-explicit-any @@ -28,8 +28,8 @@ export function SignalMixin>( } protected addSignalSubscriber>( - signal: S, - subscriber: Subscriber + signal: S, + subscriber: Subscriber ): void { this.signalSubscribers.push([signal, subscriber]); }