Skip to content

Commit b9b375a

Browse files
committed
Add necessary typecast for supporting jlab 1 and 2
1 parent eff713e commit b9b375a

File tree

1 file changed

+3
-1
lines changed
  • {{cookiecutter.github_project_name}}/src

1 file changed

+3
-1
lines changed

{{cookiecutter.github_project_name}}/src/plugin.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ const examplePlugin: IPlugin<Application<Widget>, void> = {
2929
requires: [IJupyterWidgetRegistry],
3030
activate: activateWidgetExtension,
3131
autoStart: true
32-
};
32+
} as unknown as IPlugin<Application<Widget>, void>;
33+
// the "as unknown as ..." typecast above is solely to support JupyterLab 1
34+
// and 2 in the same codebase and should be removed when we migrate to Lumino.
3335

3436
export default examplePlugin;
3537

0 commit comments

Comments
 (0)