From b6f3ccb73cddc659851628602732d29be1bc4ce8 Mon Sep 17 00:00:00 2001 From: zombieb Date: Wed, 25 Jun 2025 02:44:48 -0400 Subject: [PATCH] need these to publish properly on jsr --- mod.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mod.ts b/mod.ts index 701600c..c134ad3 100644 --- a/mod.ts +++ b/mod.ts @@ -224,7 +224,7 @@ class ListenersBase { for (const cb of typeListeners) (cb as TypeListener)(msg, msgtype, source, time); } } -const LoggingListeners = new ListenersBase(); +const LoggingListeners: ListenersBase = new ListenersBase(); enum LogTiming { Sync, @@ -242,14 +242,14 @@ class LoggingConfigurationBase { #timeType: TimeFormat = TimeFormat.Utc; - get timeFormat() { return this.#timeType } - set timeFormat(data) { this.#timeType = data } + get timeFormat(): TimeFormat { return this.#timeType } + set timeFormat(data: TimeFormat) { this.#timeType = data } - get logTiming() { return this.#timing; } - set logTiming(data) { this.#timing = data } + get logTiming(): LogTiming { return this.#timing; } + set logTiming(data: LogTiming) { this.#timing = data } } -const LoggingConfiguration = new LoggingConfigurationBase(); +const LoggingConfiguration: LoggingConfigurationBase = new LoggingConfigurationBase(); export { MessageType, TimeFormat, LogTiming, MessageTypeVisibility, LoggingListeners, LoggingConfiguration }; export default Logging; \ No newline at end of file