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
This commit is contained in:
dakkar 2024-12-26 09:33:35 +00:00
parent abb2c37591
commit 45f7743323

View file

@ -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 {