Skip to content

Commit

Permalink
Element: export React types for refs
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnajdr committed Jul 22, 2024
1 parent d10c203 commit 0c3c55f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/element/src/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,26 @@ import {
*/

/**
* Object containing a React synthetic event.
* Object containing a React ref object.
*
* @template T
* @typedef {import('react').RefObject<T>} RefObject<T>
*/

/**
* Object containing a React ref callback.
*
* @template T
* @typedef {import('react').RefCallback<T>} RefCallback<T>
*/

/**
* Object containing a React ref.
*
* @template T
* @typedef {import('react').Ref<T>} Ref<T>
*/

/**
* Object that provides utilities for dealing with React children.
*/
Expand Down

0 comments on commit 0c3c55f

Please sign in to comment.