mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Added InvalidEvent, onInvalid & onInvalidCapture
https://developer.mozilla.org/en-US/docs/Web/Events/invalid
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