-
Notifications
You must be signed in to change notification settings - Fork 936
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the type of renderRoot to include Element (#4254)
* Use a Mutable<T, K> type to more accurate casts * Change the type of renderRoot to include Element * Change createRenderRoot too * Update check-size script * Update check-size.js --------- Co-authored-by: Andrew Jakubowicz <ajakubowicz@google.com> Co-authored-by: Peter Burns <rictic@google.com>
- Loading branch information
1 parent
f14fc2f
commit 1040f75
Showing
3 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@lit/reactive-element': major | ||
'lit-element': major | ||
'lit': major | ||
--- | ||
|
||
Change the type of `ReactiveElement.renderRoot` and return type of `ReactiveElement.createRenderRoot()` to be `HTMLElement | DocumentFragment` to match each other and lit-html's `render()` method. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters