Skip to content

Commit 6ecc599

Browse files
authored
fix(socket): type errors (#1216)
1 parent bc0a9a7 commit 6ecc599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/sdk-socket-server-next/src/logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import winston, { format } from 'winston';
22

33
const customFormat = format.printf((ti) => {
44
const { level, message, timestamp } = ti;
5-
const args = ti[Symbol.for('splat')];
5+
const args = ti[Symbol.for('splat')] as unknown[];
66

77
const color = {
88
info: '\x1b[36m',
@@ -31,7 +31,7 @@ const customFormat = format.printf((ti) => {
3131
})
3232
.join(' ') ?? '';
3333

34-
const searchContext = message;
34+
const searchContext = message as string;
3535
if (searchContext.indexOf('wallet') !== -1) {
3636
msg += `\x1b[36m${message} ${extras}\x1b[0m`;
3737
// eslint-disable-next-line no-negated-condition

0 commit comments

Comments
 (0)