diff --git a/src/Explorer/Notebook/NotebookComponent/NotebookComponentAdapter.tsx b/src/Explorer/Notebook/NotebookComponent/NotebookComponentAdapter.tsx index 722153b89..c0b808c93 100644 --- a/src/Explorer/Notebook/NotebookComponent/NotebookComponentAdapter.tsx +++ b/src/Explorer/Notebook/NotebookComponent/NotebookComponentAdapter.tsx @@ -16,7 +16,7 @@ export interface NotebookComponentAdapterOptions { export class NotebookComponentAdapter extends NotebookComponentBootstrapper implements ReactAdapter { private onUpdateKernelInfo: () => void; - public parameters: undefined; + public parameters: unknown; constructor(options: NotebookComponentAdapterOptions) { super({ diff --git a/src/Explorer/Notebook/NotebookRenderer/decorators/hijack-scroll/index.tsx b/src/Explorer/Notebook/NotebookRenderer/decorators/hijack-scroll/index.tsx index 937bb6da9..ba7761aef 100644 --- a/src/Explorer/Notebook/NotebookRenderer/decorators/hijack-scroll/index.tsx +++ b/src/Explorer/Notebook/NotebookRenderer/decorators/hijack-scroll/index.tsx @@ -35,8 +35,7 @@ export class HijackScroll extends React.Component { ) { if (this.el && "scrollIntoViewIfNeeded" in this.el) { // This is only valid in Chrome, WebKit - //eslint-disable-next-line - (this.el as any).scrollIntoViewIfNeeded(); + ((this.el as unknown) as HijackScroll).scrollIntoViewIfNeeded(); } else if (this.el) { // Make a best guess effort for older platforms this.el.scrollIntoView();