From 490c0d90574a34a0bf1c8b286e2d0774a023b0f1 Mon Sep 17 00:00:00 2001 From: Strix Date: Sun, 16 Mar 2025 17:41:24 +0100 Subject: [PATCH] fix: random deps --- src/common.ts | 12 ++++++------ src/dispatch/FileDispatch.ts | 1 - src/dispatch/FormattedDispatch.ts | 1 - 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/common.ts b/src/common.ts index 666c6ce..c9d10b0 100644 --- a/src/common.ts +++ b/src/common.ts @@ -10,12 +10,12 @@ let CURRENT_DISPATCH: Dispatch = new class extends Dispatch { export const setDispatch = (dispatch: Dispatch) => CURRENT_DISPATCH = dispatch; -export const LOGT = (...args) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Trace, data: args }); -export const LOGD = (...args) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Debug, data: args }); -export const LOGI = (...args) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Info, data: args }); -export const LOGW = (...args) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Warn, data: args }); -export const LOGE = (...args) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Error, data: args }); -export const LOGC = (...args) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Critical, data: args }); +export const LOGT = (...args: any[]) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Trace, data: args }); +export const LOGD = (...args: any[]) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Debug, data: args }); +export const LOGI = (...args: any[]) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Info, data: args }); +export const LOGW = (...args: any[]) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Warn, data: args }); +export const LOGE = (...args: any[]) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Error, data: args }); +export const LOGC = (...args: any[]) => CURRENT_DISPATCH.process({ timestamp: new Date(), level: LogLevel.Critical, data: args }); export const LOG = (item: Partial) => CURRENT_DISPATCH.process({ flags: item.flags ?? [], diff --git a/src/dispatch/FileDispatch.ts b/src/dispatch/FileDispatch.ts index 2f72985..cc0c5d1 100644 --- a/src/dispatch/FileDispatch.ts +++ b/src/dispatch/FileDispatch.ts @@ -1,6 +1,5 @@ import * as fs from "fs"; import { FormattedDispatch } from "./FormattedDispatch"; -import { App } from "../App"; import { ILogItem } from "../ILogItem"; import { LOGE, LOGW } from "../common"; diff --git a/src/dispatch/FormattedDispatch.ts b/src/dispatch/FormattedDispatch.ts index ce0075c..1657a71 100644 --- a/src/dispatch/FormattedDispatch.ts +++ b/src/dispatch/FormattedDispatch.ts @@ -1,4 +1,3 @@ -import { object } from "zod"; import { Dispatch } from "./Dispatch"; import { ILogItem } from "../ILogItem"; import { LogLevel } from "../LogLevel";