Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ensureSafeComponent usable with Glint #1301

Merged
merged 2 commits into from Dec 2, 2022

Conversation

chriskrycho
Copy link
Contributor

Introduce a peer (and dev) dependency on @glint/template for the type of ensureSafeComponent to always return a ComponentLike, which is what its implementation does from the point of view of a consumer using Glint. This is an optional peer dependency, but should be installed by anyone using TS who wants to use Glint types.

Note: This would be a breaking change if our TS support story were stable; in this case it is part of making our support story stable.

Introduce a peer (and dev) dependency on `@glint/template` for the type
of `ensureSafeComponent` to always return a `ComponentLike`, which is
what its implementation does from the point of view of a consumer using
Glint. This is an optional peer dependency, but should be installed by
anyone using TS who wants to use Glint types.

Note: This would be a breaking change if our TS support story were
stable; in this case it is *part of* making our support story stable.
@ef4 ef4 merged commit 3d6fb98 into embroider-build:main Dec 2, 2022
@ef4
Copy link
Contributor

ef4 commented Dec 2, 2022

Thanks, this seems good to me.

@chriskrycho chriskrycho deleted the ensureSafeComponent-types branch December 2, 2022 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants