From d20a13315de23850a91bb86d9437e42c21a9f936 Mon Sep 17 00:00:00 2001 From: Dimas Lanjaka Date: Wed, 10 May 2023 15:19:38 +0700 Subject: [PATCH] chore: cast type `ConsoleArgs` to `any[]` (#148) * chore(ConsoleArgs): change types * chore(ConsoleArgs): change types to any * chore: cast `ConsoleArgs` to `any[]` because just wrapper of `console.log` Co-authored-by: Sukka --------- Co-authored-by: Sukka --- lib/log.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/log.ts b/lib/log.ts index e448573..f27b2f3 100644 --- a/lib/log.ts +++ b/lib/log.ts @@ -37,7 +37,7 @@ interface Options { silent?: boolean } -type ConsoleArgs = [object | string, ...string[]]; +type ConsoleArgs = any[]; type writeLogF = (...args: ConsoleArgs) => void;