forked from embroider-build/embroider
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
061fbe4
commit dc24a3f
Showing
1 changed file
with
10 additions
and
0 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,10 @@ | ||
--- | ||
'@embroider/util': patch | ||
--- | ||
|
||
Improve types of `ensure-safe-component` helper | ||
|
||
This will improve the Glint type of `ensure-safe-component` in two ways: | ||
|
||
- when a component class is passed, the return type will _not_ get narrowed down to an (mostly unusable) `ComponentLike<unknown>`, but to the type of the passed component itself | ||
- when a string is passed that has an entry in the `@glint/environment-ember-loose` template registry, then the registered type will be returned instead of again `ComponentLike<unknown>` |