need these to publish properly on jsr
This commit is contained in:
12
mod.ts
12
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;
|
||||
Reference in New Issue
Block a user