File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -426,8 +426,8 @@ export declare interface AppProps {
426
426
children3: React .ReactChild | React .ReactChildren ; // better, but doesnt accept strings
427
427
children: React .ReactNode ; // best, accepts everything
428
428
style? : React .CSSProperties ; // to pass through style props
429
- onChange? : ( e : React .FormEvent <HTMLInputElement >) => void ; // form events!
430
- props: Props & React .HTMLProps < HTMLButtonElement > // to impersonate all the props of a HTML element
429
+ onChange? : React .FormEventHandler <HTMLInputElement >; // form events! the generic parameter is the type of event.target
430
+ props: Props & React .PropsWithoutRef < JSX . IntrinsicElements [ ' button ' ] > // to impersonate all the props of a button element without its ref
431
431
}
432
432
```
433
433
You can’t perform that action at this time.
0 commit comments