Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
vhdirk committed Dec 9, 2022
1 parent 50457a1 commit 1764658
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/angular-echarts/base/src/chart.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ export class TdChartComponent implements AfterViewInit, OnChanges, OnDestroy {
private _widthSubject: Subject<number> = new Subject<number>();
private _heightSubject: Subject<number> = new Subject<number>();

private _instance: ECharts;
private _instance?: ECharts;
private _echarts: typeof echarts;

/**
* returns the echarts instance
*/
get instance(): ECharts {
get instance(): ECharts | undefined {
return this._instance;
}

Expand Down Expand Up @@ -93,7 +93,7 @@ export class TdChartComponent implements AfterViewInit, OnChanges, OnDestroy {
private _changeDetectorRef: ChangeDetectorRef,
private _elementRef: ElementRef,
private _optionsService: TdChartOptionsService,
@Inject(TD_ECHARTS_CONFIG) private _config: TdEchartsConfig,
@Inject(TD_ECHARTS_CONFIG) private _config: TdEchartsConfig
) {
this._echarts = _config.echarts || (window as any).echarts;
}
Expand Down

0 comments on commit 1764658

Please sign in to comment.