diff options
Diffstat (limited to 'packages/exchange-backoffice-ui/src/handlers/InputText.tsx')
-rw-r--r-- | packages/exchange-backoffice-ui/src/handlers/InputText.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/exchange-backoffice-ui/src/handlers/InputText.tsx b/packages/exchange-backoffice-ui/src/handlers/InputText.tsx index 014730d92..1b37ee6fb 100644 --- a/packages/exchange-backoffice-ui/src/handlers/InputText.tsx +++ b/packages/exchange-backoffice-ui/src/handlers/InputText.tsx @@ -1,6 +1,8 @@ import { VNode, h } from "preact"; import { InputLine, UIFormProps } from "./InputLine.js"; -export function InputText<T>(props: UIFormProps<T>): VNode { +export function InputText<T extends object, K extends keyof T>( + props: UIFormProps<T, K>, +): VNode { return <InputLine type="text" {...props} />; } |