From 45f77433233bbf86d45fd4fc46c28726051a22f7 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 26 Dec 2024 09:33:35 +0000 Subject: [PATCH] fix types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don't understand the difference between `any` and `unknown`, but the type signatures before this branch had `Record | null`, and this code passes the typecheck… mah --- packages/backend/src/logger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/logger.ts b/packages/backend/src/logger.ts index 0c9862c573..c24c1419c2 100644 --- a/packages/backend/src/logger.ts +++ b/packages/backend/src/logger.ts @@ -19,7 +19,7 @@ type Context = { type Level = 'error' | 'success' | 'warning' | 'debug' | 'info'; type Data = DataElement | DataElement[]; -type DataElement = Record | string | null; +type DataElement = Record | string | null; // eslint-disable-next-line import/no-default-export export default class Logger {