@types/react-shadow-dom-retarget-events
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

Installation

npm install --save @types/react-shadow-dom-retarget-events

Summary

This package contains type definitions for react-shadow-dom-retarget-events (https://github.com/weltn24/react-shadow-dom-retarget-events#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-shadow-dom-retarget-events.

index.d.ts

export = retargetEvents;

/**
 * Fixes events for react components rendered in a `shadow dom`.
 *
 * When you render a react component inside `shadow dom` events will not be dispatched to react. I.e. when a user clicks in your react component nothing happens. This happens (or does not happen)
 * with any events.
 *
 * A bug is filed at [#10422](https://github.com/facebook/react/issues/10422).
 */
declare function retargetEvents(shadowRoot: ShadowRoot): void;

Additional Details

  • Last updated: Tue, 06 Feb 2024 19:06:54 GMT
  • Dependencies: none

Credits

These definitions were written by Remco Haszing.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    739
  • 1.0.2
    119
  • 1.0.1
    0
  • 1.0.0
    1,403

Package Sidebar

Install

npm i @types/react-shadow-dom-retarget-events

Weekly Downloads

1,992

Version

1.0.3

License

MIT

Unpacked Size

3.69 kB

Total Files

5

Last publish

Collaborators

  • types