mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-06 17:29:08 +00:00
Merge pull request #17082 from rapilabs/react-invalid-event
react: Added InvalidEvent, onInvalid & onInvalidCapture
This commit is contained in:
6
types/react/index.d.ts
vendored
6
types/react/index.d.ts
vendored
@@ -330,6 +330,10 @@ declare namespace React {
|
||||
interface FormEvent<T> extends SyntheticEvent<T> {
|
||||
}
|
||||
|
||||
interface InvalidEvent<T> extends SyntheticEvent<T> {
|
||||
target: EventTarget & T;
|
||||
}
|
||||
|
||||
interface ChangeEvent<T> extends SyntheticEvent<T> {
|
||||
target: EventTarget & T;
|
||||
}
|
||||
@@ -502,6 +506,8 @@ declare namespace React {
|
||||
onResetCapture?: FormEventHandler<T>;
|
||||
onSubmit?: FormEventHandler<T>;
|
||||
onSubmitCapture?: FormEventHandler<T>;
|
||||
onInvalid?: FormEventHandler<T>;
|
||||
onInvalidCapture?: FormEventHandler<T>;
|
||||
|
||||
// Image Events
|
||||
onLoad?: ReactEventHandler<T>;
|
||||
|
||||
Reference in New Issue
Block a user