From 96bfa21134b040ac9906d25f975cea29fc8d1900 Mon Sep 17 00:00:00 2001 From: eirikbacker Date: Thu, 10 Oct 2024 21:31:18 +0200 Subject: [PATCH] fix(Input): simplify type --- packages/react/src/components/form/Input/Input.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/react/src/components/form/Input/Input.tsx b/packages/react/src/components/form/Input/Input.tsx index 6ec24d62a4..f1aea063a0 100644 --- a/packages/react/src/components/form/Input/Input.tsx +++ b/packages/react/src/components/form/Input/Input.tsx @@ -23,14 +23,7 @@ export type InputProps = { readOnly?: boolean; /** Set role, i.e. `switch` when `checkbox` or `radio` */ role?: InputAttr['role']; -} & Omit & - ( - | { type: 'checkbox' | 'radio'; role?: 'switch' | InputAttr['role'] } - | { - type?: Omit | never; - role?: Omit; - } - ); +} & Omit; /** Input field *