-
-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add @types/chart.js types in typescript definitions (#536)
use @types/chart.js types in typescript definitions
- Loading branch information
Showing
3 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import Vue from 'vue' | ||
import { ChartData, ChartOptions } from 'chart.js'; | ||
|
||
/** vue-chartjs component common definition */ | ||
export declare class BaseChart extends Vue { | ||
addPlugin (plugin?: string[]): void | ||
renderChart (chartData: any, options?: any): void | ||
renderChart (chartData: ChartData, options?: ChartOptions): void | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import Vue from 'vue' | ||
import Vue from 'vue'; | ||
import { ChartData } from 'chart.js'; | ||
|
||
export declare class ReactiveDataMixin extends Vue { | ||
chartData: any; | ||
chartData: ChartData; | ||
} | ||
|
||
export declare class ReactivePropMixin extends Vue { | ||
readonly chartData: any; | ||
readonly chartData: ChartData; | ||
} |