Skip to content

Commit d703972

Browse files
committed
fix: fix type errors for exported logger
1 parent 26e0135 commit d703972

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@
3535
*
3636
* The logger object aggregates these functions for easy access.
3737
*/
38+
type LoggerFunction = (message: string, data?: unknown) => void;
3839

39-
export const logger = {
40+
export const logger: Record<
41+
'debug' | 'log' | 'error' | 'warn',
42+
LoggerFunction
43+
> = {
4044
debug: debugMessage,
4145
log: logMessage,
4246
error: errorMessage,

0 commit comments

Comments
 (0)