Skip to content

Commit

Permalink
Revert "[@types/react] fix: remove onPointerEnterCapture & onPointerL…
Browse files Browse the repository at this point in the history
…eaveCapture (#68984) (#69005)

Co-authored-by: eps1lon <silbermann.sebastian@gmail.com>
  • Loading branch information
Thulof and eps1lon committed Mar 18, 2024
1 parent ea21d57 commit 1bfbd3b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions types/react/v16/index.d.ts
Expand Up @@ -1522,7 +1522,17 @@ declare namespace React {
onPointerCancel?: PointerEventHandler<T> | undefined;
onPointerCancelCapture?: PointerEventHandler<T> | undefined;
onPointerEnter?: PointerEventHandler<T> | undefined;
/**
* @deprecated This event handler was always ignored by React. It was added by mistake to the types.
*/
// Removing this breaks too many libraries to be worth it.
onPointerEnterCapture?: PointerEventHandler<T> | undefined;
onPointerLeave?: PointerEventHandler<T> | undefined;
/**
* @deprecated This event handler was always ignored by React. It was added by mistake to the types.
*/
// Removing this breaks too many libraries to be worth it.
onPointerLeaveCapture?: PointerEventHandler<T> | undefined;
onPointerOver?: PointerEventHandler<T> | undefined;
onPointerOverCapture?: PointerEventHandler<T> | undefined;
onPointerOut?: PointerEventHandler<T> | undefined;
Expand Down
10 changes: 10 additions & 0 deletions types/react/v17/index.d.ts
Expand Up @@ -1522,7 +1522,17 @@ declare namespace React {
onPointerCancel?: PointerEventHandler<T> | undefined;
onPointerCancelCapture?: PointerEventHandler<T> | undefined;
onPointerEnter?: PointerEventHandler<T> | undefined;
/**
* @deprecated This event handler was always ignored by React. It was added by mistake to the types.
*/
// Removing this breaks too many libraries to be worth it.
onPointerEnterCapture?: PointerEventHandler<T> | undefined;
onPointerLeave?: PointerEventHandler<T> | undefined;
/**
* @deprecated This event handler was always ignored by React. It was added by mistake to the types.
*/
// Removing this breaks too many libraries to be worth it.
onPointerLeaveCapture?: PointerEventHandler<T> | undefined;
onPointerOver?: PointerEventHandler<T> | undefined;
onPointerOverCapture?: PointerEventHandler<T> | undefined;
onPointerOut?: PointerEventHandler<T> | undefined;
Expand Down

0 comments on commit 1bfbd3b

Please sign in to comment.