Skip to content

Commit a42613b

Browse files
Apply suggestions to fix typescript compilation
Co-authored-by: Jason Grout <[email protected]>
1 parent b78e139 commit a42613b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/widget.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ class SidecarModel extends OutputModel {
2929

3030
initialize(attributes: any, options: any) {
3131
super.initialize(attributes, options);
32-
// FIXME: Argument of type 'undefined' is not assignable to parameter of type 'IMessage<MessageType>'.
33-
this.widget_manager.display_model(undefined, this, {});
32+
this.widget_manager.display_model(undefined as any, this, {});
3433
}
3534

3635
static serializers : any = {

tests/src/utils.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ class MockComm {
2121
on_msg(fn: Function | null) {
2222
this._on_msg = fn;
2323
}
24-
// FIXME: Namespace '"REDACTED/jupyterlab-sidecar/node_modules/@jupyterlab/services/lib/kernel/messages"' has no exported member 'ICommMsg'.
25-
_process_msg(msg: services.KernelMessage.ICommMsg) {
24+
_process_msg(msg: services.KernelMessage.ICommMsgMsg) {
2625
if (this._on_msg) {
2726
return this._on_msg(msg);
2827
} else {

0 commit comments

Comments
 (0)