Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Aug 12, 2023
1 parent e260410 commit f3f3a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/types/pino.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ info("the answer is %d", 42);
info({ obj: 42 }, "hello world");
info({ obj: 42, b: 2 }, "hello world");
info({ obj: { aa: "bbb" } }, "another");
// @ts-expect-error The type definitions will throw an error if you call log functions using
// higher order functions.
setImmediate(info, "after setImmediate");
// The type definitions will not work properly when using higher order functions, so we have to
// perform a manual type assertion.
setImmediate(info as (string) => void, "after setImmediate");
error(new Error("an error"));

const writeSym = pino.symbols.writeSym;
Expand Down

0 comments on commit f3f3a5d

Please sign in to comment.