What is the TypeScript definition for the onChangeCapture event in React?

The right interface for onChangeCapture is FormEvent

Please continue reading below to see how to use it or read my guide on using React's events with TypeScript.

Interface

interface FormEvent<T = Element> extends SyntheticEvent<T> {
}

Full example

import React, { FormEvent } from 'react';

const FormComponent = () => {
  const handleFormEvent = (e: FormEvent<HTMLFormElement>) => {
    // Do something
  };

  return <form onChangeCapture={handleFormEvent}>{/** Some JSX */}</form>;
};

export default FormComponent;

Attributes that use FormEvent: