Skip to content

Commit

Permalink
fix: Support for card-mod >= 3.0
Browse files Browse the repository at this point in the history
Fixes #104
  • Loading branch information
RomRider committed Feb 26, 2021
1 parent c8dedf7 commit 8348119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/types-config-ti.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const ChartCardExternalConfig = t.iface([], {
"apex_config": t.opt("any"),
"header": t.opt("ChartCardHeaderExternalConfig"),
"style": t.opt("any"),
"card_mod": t.opt("any"),
"brush": t.opt("ChartCardBrushExtConfig"),
});

Expand Down
4 changes: 3 additions & 1 deletion src/types-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ export interface ChartCardExternalConfig {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
apex_config?: any;
header?: ChartCardHeaderExternalConfig;
// Support to define style (card-mod or picture-entity)
// Support to define style (card-mod/card-mod-v3.0 or picture-entity)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
style?: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
card_mod?: any;
brush?: ChartCardBrushExtConfig;
}

Expand Down

0 comments on commit 8348119

Please sign in to comment.