Skip to content

Commit e9aa46d

Browse files
author
Akos Kitta
committed
fix: remove any
1 parent df1f18f commit e9aa46d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

arduino-ide-extension/src/browser/serial/monitor/monitor-view-contribution.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
import { ArduinoToolbar } from '../../toolbar/arduino-toolbar';
1111
import { ArduinoMenus } from '../../menu/arduino-menus';
1212
import { nls } from '@theia/core/lib/common';
13+
import { Event } from '@theia/core/lib/common/event';
1314
import { MonitorModel } from '../../monitor-model';
1415
import { MonitorManagerProxyClient } from '../../../common/protocol';
1516

@@ -84,13 +85,13 @@ export class MonitorViewContribution
8485
id: 'monitor-autoscroll',
8586
render: () => this.renderAutoScrollButton(),
8687
isVisible: (widget) => widget instanceof MonitorWidget,
87-
onDidChange: this.model.onChange as any, // XXX: it's a hack. See: https://github.com/eclipse-theia/theia/pull/6696/
88+
onDidChange: this.model.onChange as Event<unknown> as Event<void>,
8889
});
8990
registry.registerItem({
9091
id: 'monitor-timestamp',
9192
render: () => this.renderTimestampButton(),
9293
isVisible: (widget) => widget instanceof MonitorWidget,
93-
onDidChange: this.model.onChange as any, // XXX: it's a hack. See: https://github.com/eclipse-theia/theia/pull/6696/
94+
onDidChange: this.model.onChange as Event<unknown> as Event<void>,
9495
});
9596
registry.registerItem({
9697
id: SerialMonitor.Commands.CLEAR_OUTPUT.id,

0 commit comments

Comments
 (0)