ソースを参照

Avoids any

main
Eric Amodio 2年前
コミット
b305092f1c
3個のファイルの変更4行の追加4行の削除
  1. +1
    -1
      src/plus/webviews/graph/graphWebview.ts
  2. +1
    -1
      src/plus/webviews/timeline/timelineWebview.ts
  3. +2
    -2
      src/webviews/webviewBase.ts

+ 1
- 1
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<void> {
override async show(column: ViewColumn = ViewColumn.Active, ...args: unknown[]): Promise<void> {
if (!(await ensurePlusFeaturesEnabled())) return;
if (this.container.git.repositoryCount > 1) {

+ 1
- 1
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<void> {
override async show(column: ViewColumn = ViewColumn.Beside, ...args: unknown[]): Promise<void> {
if (!(await ensurePlusFeaturesEnabled())) return;
return super.show(column, ...args);

+ 2
- 2
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<void> {
async show(column: ViewColumn = ViewColumn.Beside, ..._args: unknown[]): Promise<void> {
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);
}

読み込み中…
キャンセル
保存