From b46c397989df15149803cc1607448dd83c8781a7 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 28 Apr 2022 23:03:56 +0800 Subject: ... --- FrontEnd/src/views/common/input/InputPanel.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'FrontEnd/src/views/common') diff --git a/FrontEnd/src/views/common/input/InputPanel.tsx b/FrontEnd/src/views/common/input/InputPanel.tsx index 1270cc53..704330eb 100644 --- a/FrontEnd/src/views/common/input/InputPanel.tsx +++ b/FrontEnd/src/views/common/input/InputPanel.tsx @@ -72,7 +72,9 @@ type MapInputListToValueTypeList = { [Index in keyof Tuple]: MapInputToValueType; } & { length: Tuple["length"] }; -export type OperationInputError = (I18nText | null | undefined)[]; +export type InputPanelError = { + [index: number]: I18nText | null | undefined; +}; export interface InputPanelProps { scheme: InputList; @@ -81,7 +83,7 @@ export interface InputPanelProps { values: MapInputListToValueTypeList, index: number ) => void; - error?: OperationInputError; + error?: InputPanelError; disable?: boolean; } -- cgit v1.2.3