From 76a8023a12fbdf920309ed1751e1e8d488e90ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Wiedemann?= Date: Sat, 27 Mar 2021 14:05:04 +0000 Subject: [PATCH] fix: Support for custom views config parameters (`view_layout`) --- src/types-config-ti.ts | 3 +++ src/types-config.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/types-config-ti.ts b/src/types-config-ti.ts index 5eea300..444e9c3 100644 --- a/src/types-config-ti.ts +++ b/src/types-config-ti.ts @@ -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"), }); diff --git a/src/types-config.ts b/src/types-config.ts index fd24d7c..80771f8 100644 --- a/src/types-config.ts +++ b/src/types-config.ts @@ -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; }