From 91f3a86ec4a729999f84ee287ac0e05f0c6abee9 Mon Sep 17 00:00:00 2001 From: Allen Hansen Date: Fri, 12 Apr 2024 22:35:28 -0400 Subject: [PATCH] Narrow the `getInputProps` helper function return type annotation's `type` prop --- packages/conform-react/helpers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/conform-react/helpers.ts b/packages/conform-react/helpers.ts index 19187390..eb3f1674 100644 --- a/packages/conform-react/helpers.ts +++ b/packages/conform-react/helpers.ts @@ -240,10 +240,10 @@ export function getFormControlProps( * * ``` */ -export function getInputProps( +export function getInputProps( metadata: FieldMetadata, - options: InputOptions, -): InputProps { + options: Options, +): InputProps & Pick { const props: InputProps = { ...getFormControlProps(metadata, options), type: options.type,