added valid types

This commit is contained in:
Ebube
2024-03-20 13:37:49 +01:00
parent 32f2a358b2
commit 1bd523c493
3 changed files with 42 additions and 26 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ export interface InputCompOneProps {
labelSpanClass?: string;
placeholder?: string;
value: string;
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
onInput: (e: React.FormEvent<HTMLInputElement>) => void;
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
onInput?: (e: React.FormEvent<HTMLInputElement>) => void;
name: string;
tabIndex?: number;
ref?: React.RefObject<HTMLInputElement>;