Skip to content

Commit

Permalink
fix(types): adjust LogArg type
Browse files Browse the repository at this point in the history
  • Loading branch information
Qreepex committed Dec 2, 2024
1 parent 4285c73 commit fd4143a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ import { emojify } from "node-emoji";

import replaceBigInts from "./replaceBigInts.js";

export type LogArg = Error | bigint | boolean | number | object | string;
export type LogArg =
| { [key: string]: any }
| Error
| any[]
| bigint
| boolean
| null
| number
| object
| string
| undefined;

export const LogLevels = {
0: "Debug",
Expand Down

0 comments on commit fd4143a

Please sign in to comment.