summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-12-26 09:33:35 +0000
committerdakkar <dakkar@thenautilus.net>2024-12-26 09:33:35 +0000
commit45f77433233bbf86d45fd4fc46c28726051a22f7 (patch)
tree10f4201eb5f33d3c7961c00b0d462d9fc62bd02b
parentre-implement "reduce inbox log spam when fetching blocked / unavailable notes" (diff)
downloadsharkey-45f77433233bbf86d45fd4fc46c28726051a22f7.tar.gz
sharkey-45f77433233bbf86d45fd4fc46c28726051a22f7.tar.bz2
sharkey-45f77433233bbf86d45fd4fc46c28726051a22f7.zip
fix types
I don't understand the difference between `any` and `unknown`, but the type signatures before this branch had `Record<string, any> | null`, and this code passes the typecheck… mah
-rw-r--r--packages/backend/src/logger.ts2
1 files changed, 1 insertions, 1 deletions
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, unknown> | string | null;
+type DataElement = Record<string, any> | string | null;
// eslint-disable-next-line import/no-default-export
export default class Logger {