cleaning logger types

This commit is contained in:
tiagosiebler
2021-02-07 16:53:32 +00:00
parent eb5f8333c1
commit 4ee7de3774
3 changed files with 6 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
import { WsConnectionState } from '../websocket-client';
import { DefaultLogger, Logger } from '../logger';
import { DefaultLogger } from '../logger';
import WebSocket from 'isomorphic-ws';
@@ -20,9 +20,9 @@ export default class WsStore {
private wsState: {
[key: string]: WsStoredState;
}
private logger: Logger;
private logger: typeof DefaultLogger;
constructor(logger: Logger) {
constructor(logger: typeof DefaultLogger) {
this.logger = logger || DefaultLogger;
this.wsState = {};
}