Skip to content

Commit

Permalink
add type test
Browse files Browse the repository at this point in the history
  • Loading branch information
theoephraim committed Dec 12, 2024
1 parent b5c447e commit 827fd22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/types/pino.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ const withHooks = pino({
expectType<pino.Logger>(this);
return method.apply(this, args);
},
streamWrite(s) {
expectType<string>(s);
return s.replaceAll('secret-key', 'xxx');
},
},
});

Expand Down

0 comments on commit 827fd22

Please sign in to comment.