Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
simonihmig committed Feb 24, 2023
1 parent 061fbe4 commit dc24a3f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .changeset/plenty-chairs-relate.md
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>`

0 comments on commit dc24a3f

Please sign in to comment.