Implemented few changes

This commit is contained in:
vaidankarswapnil
2021-10-06 11:54:50 +05:30
parent 22f6670184
commit 92acc63103
2 changed files with 2 additions and 3 deletions

View File

@@ -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({

View File

@@ -35,8 +35,7 @@ export class HijackScroll extends React.Component<Props> {
) {
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();