From c63738e17df4d5bfff2049a6d1c445c609c2189e Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Thu, 14 Mar 2024 19:29:29 -0400 Subject: fix: fix lots of type errors --- src/components/TextInput.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/TextInput.tsx') diff --git a/src/components/TextInput.tsx b/src/components/TextInput.tsx index 026b062..c74828d 100644 --- a/src/components/TextInput.tsx +++ b/src/components/TextInput.tsx @@ -4,12 +4,12 @@ import './TextInput.css'; export interface TextInputProps { signal?: Signal; - props: Record; + [prop: string]: any; } const TextInput = ({ signal, ...props }: TextInputProps) => { const onInputSignal = useCallback((event: InputEvent) => { - signal.value = event.target.value; + if (signal) signal.value = (event.target as HTMLInputElement).value; }, [signal]); return ( -- cgit v1.2.3