Ver código fonte

Avoids any

main
Eric Amodio 2 anos atrás
pai
commit
b305092f1c
3 arquivos alterados com 4 adições e 4 exclusões
  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 Ver arquivo

@ -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 Ver arquivo

@ -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 Ver arquivo

@ -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);
}

Carregando…
Cancelar
Salvar