Skip to content

Commit

Permalink
Added typescript compiler to generate typescript definitions (#22)
Browse files Browse the repository at this point in the history
* Added typescript compiler to generate typescript definitions

* Add reference to type definition file

* Add @types/prop-types

* Add a note on TypeScript included
  • Loading branch information
andersthorsen authored Sep 13, 2021
1 parent 83bcd93 commit 83921e8
Show file tree
Hide file tree
Showing 5 changed files with 10,389 additions and 36 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ When the shadow root is created on its parent element, all children are copied i

## Notes
- A minimum of React 16 is required.
- TypeScript definitions included and should not require configuration
- Works in all modern browsers except non-Chromium Edge. Click [here](https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow#Browser_compatibility) for current browser support.
- Not all HTML elements allow you to attach a shadow root. Click [here](https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow#Elements_you_can_attach_a_shadow_to) for more information.
- It has been tested with the Context API introduced in React 16.3.0 and it worked fine. It has not been tested with the previous API.
Loading

0 comments on commit 83921e8

Please sign in to comment.