From b305092f1ca8fd057709426063892db24d4d6f72 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 26 Aug 2022 03:17:02 -0400 Subject: [PATCH] Avoids any --- src/plus/webviews/graph/graphWebview.ts | 2 +- src/plus/webviews/timeline/timelineWebview.ts | 2 +- src/webviews/webviewBase.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plus/webviews/graph/graphWebview.ts b/src/plus/webviews/graph/graphWebview.ts index 2046eca..1ba681e 100644 --- a/src/plus/webviews/graph/graphWebview.ts +++ b/src/plus/webviews/graph/graphWebview.ts @@ -106,7 +106,7 @@ export class GraphWebview extends WebviewBase { this.onConfigurationChanged(); } - override async show(column: ViewColumn = ViewColumn.Active, ...args: any[]): Promise { + override async show(column: ViewColumn = ViewColumn.Active, ...args: unknown[]): Promise { if (!(await ensurePlusFeaturesEnabled())) return; if (this.container.git.repositoryCount > 1) { diff --git a/src/plus/webviews/timeline/timelineWebview.ts b/src/plus/webviews/timeline/timelineWebview.ts index 12849c7..8dfc3c0 100644 --- a/src/plus/webviews/timeline/timelineWebview.ts +++ b/src/plus/webviews/timeline/timelineWebview.ts @@ -60,7 +60,7 @@ export class TimelineWebview extends WebviewBase { }; } - override async show(column: ViewColumn = ViewColumn.Beside, ...args: any[]): Promise { + override async show(column: ViewColumn = ViewColumn.Beside, ...args: unknown[]): Promise { if (!(await ensurePlusFeaturesEnabled())) return; return super.show(column, ...args); diff --git a/src/webviews/webviewBase.ts b/src/webviews/webviewBase.ts index 8e23780..6d023db 100644 --- a/src/webviews/webviewBase.ts +++ b/src/webviews/webviewBase.ts @@ -70,7 +70,7 @@ export abstract class WebviewBase implements Disposable { this._panel?.dispose(); } - async show(column: ViewColumn = ViewColumn.Beside, ..._args: any[]): Promise { + async show(column: ViewColumn = ViewColumn.Beside, ..._args: unknown[]): Promise { void this.container.usage.track(`${this.trackingFeature}:shown`); // Only try to open beside if there is an active tab @@ -146,7 +146,7 @@ export abstract class WebviewBase implements Disposable { this._panel = undefined; } - protected onShowCommand(...args: any[]): void { + protected onShowCommand(...args: unknown[]): void { void this.show(undefined, ...args); }