npm.io
1.0.3 • Published 2 years ago

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

Licence
MIT
Version
1.0.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
51.3K

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 1954 GMT
  • Dependencies: none

Credits

These definitions were written by Remco Haszing.