Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

add TypeScript typings #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
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;