Skip to content

Commit

Permalink
fix: Support for custom views config parameters (view_layout)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomRider committed Mar 27, 2021
1 parent 5c829c2 commit 76a8023
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types-config-ti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export const ChartCardExternalConfig = t.iface([], {
"header": t.opt("ChartCardHeaderExternalConfig"),
"style": t.opt("any"),
"card_mod": t.opt("any"),
"view_layout": t.opt("any"),
"index": t.opt("number"),
"view_index": t.opt("number"),
"brush": t.opt("ChartCardBrushExtConfig"),
});

Expand Down
4 changes: 4 additions & 0 deletions src/types-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export interface ChartCardExternalConfig {
style?: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
card_mod?: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
view_layout?: any;
index?: number;
view_index?: number;
brush?: ChartCardBrushExtConfig;
}

Expand Down

0 comments on commit 76a8023

Please sign in to comment.