Skip to content

Commit

Permalink
fix(types): updated bar/candlestick options types
Browse files Browse the repository at this point in the history
Fix bar.width.dataset, candlestick.width.dataset to  handle number type

Close #2043
  • Loading branch information
donaldpipowitch authored and netil committed Apr 16, 2021
1 parent a8ec411 commit 0a48fd6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ Hamid Sarfraz <[email protected]>
Alan Hamlett <[email protected]>
Nicolas Forêt <[email protected]>
Marc Faber <[email protected]>
Donald Pipowitch <[email protected]>
4 changes: 2 additions & 2 deletions types/options.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export interface ChartOptions {
/**
* Set the width option for specific dataset
*/
[key: string]: {
[key: string]: number | {
ratio: number;
max: number;
}
Expand Down Expand Up @@ -362,7 +362,7 @@ export interface ChartOptions {
/**
* Set the width option for specific dataset
*/
[key: string]: {
[key: string]: number | {
ratio: number;
max: number;
}
Expand Down

0 comments on commit 0a48fd6

Please sign in to comment.