Skip to content

Commit 18f28dd

Browse files
committed
Fix log functions in shared utils
1 parent b46b86b commit 18f28dd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/shared/src/utils.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ export function info<T>(data: T): T {
2121
return data
2222
}
2323

24-
export function log(...args: any[]): undefined {
24+
export function log(message: string, ...args: any[]): undefined {
2525
// eslint-disable-next-line no-console
26-
console.log(LOG_LABEL_CYAN, ...args)
26+
console.log(LOG_LABEL_CYAN+' '+message, ...args)
2727
return
2828
}
29-
export function warn(...args: any[]): undefined {
29+
export function warn(message: string, ...args: any[]): undefined {
3030
// eslint-disable-next-line no-console
31-
console.warn(LOG_LABEL_CYAN, ...args)
31+
console.warn(LOG_LABEL_CYAN+' '+message, ...args)
3232
return
3333
}
3434

35-
export function error(...args: any[]): undefined {
35+
export function error(message: string, ...args: any[]): undefined {
3636
// eslint-disable-next-line no-console
37-
console.error(LOG_LABEL_CYAN, ...args)
37+
console.error(LOG_LABEL_CYAN+' '+message, ...args)
3838
return
3939
}
4040

0 commit comments

Comments
 (0)