Skip to content

Commit b305092

Browse files
committed
Avoids any
1 parent 645f8a3 commit b305092

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/plus/webviews/graph/graphWebview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class GraphWebview extends WebviewBase<State> {
106106
this.onConfigurationChanged();
107107
}
108108

109-
override async show(column: ViewColumn = ViewColumn.Active, ...args: any[]): Promise<void> {
109+
override async show(column: ViewColumn = ViewColumn.Active, ...args: unknown[]): Promise<void> {
110110
if (!(await ensurePlusFeaturesEnabled())) return;
111111

112112
if (this.container.git.repositoryCount > 1) {

src/plus/webviews/timeline/timelineWebview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class TimelineWebview extends WebviewBase<State> {
6060
};
6161
}
6262

63-
override async show(column: ViewColumn = ViewColumn.Beside, ...args: any[]): Promise<void> {
63+
override async show(column: ViewColumn = ViewColumn.Beside, ...args: unknown[]): Promise<void> {
6464
if (!(await ensurePlusFeaturesEnabled())) return;
6565

6666
return super.show(column, ...args);

src/webviews/webviewBase.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export abstract class WebviewBase<State> implements Disposable {
7070
this._panel?.dispose();
7171
}
7272

73-
async show(column: ViewColumn = ViewColumn.Beside, ..._args: any[]): Promise<void> {
73+
async show(column: ViewColumn = ViewColumn.Beside, ..._args: unknown[]): Promise<void> {
7474
void this.container.usage.track(`${this.trackingFeature}:shown`);
7575

7676
// Only try to open beside if there is an active tab
@@ -146,7 +146,7 @@ export abstract class WebviewBase<State> implements Disposable {
146146
this._panel = undefined;
147147
}
148148

149-
protected onShowCommand(...args: any[]): void {
149+
protected onShowCommand(...args: unknown[]): void {
150150
void this.show(undefined, ...args);
151151
}
152152

0 commit comments

Comments
 (0)