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

Feature: Introduce ambient type definitions #823

Merged
merged 1 commit into from Dec 14, 2022

Conversation

chriskrycho
Copy link
Contributor

@chriskrycho chriskrycho commented Dec 12, 2022

Ultimately we'd like to convert the package to TS, but this unblocks wider ecosystem adoption of the stable/preview Ember types. This PR can also serve as a model for other packages which want to publish types in a similar way.

This will also work just fine with the @types packages from DefinitelyTyped once a key PR lands there, but that is not the path we will recommend, so this only includes the ember-source peer dependency.

Notably, this specifies a peerDependencies version for ember-source with a constraint for ^4.8.3, since that is the version of Ember which supports the types. This may be a technically-breaking change for some consumers (specifically Yarn 3 or pnpm users who are taking advantage of those package managers), so we may want to set a looser version and simply document that; I'll happily push an update if folks prefer that!


Resolves #795

Ultimately we'd like to convert the package to TS, but this unblocks
wider ecosystem adoption of the stable/preview Ember types. This PR can
also serve as a model for other packages which want to publish types in
a similar way.

This will also work just fine with the `@types` packages from
DefinitelyTyped once [a key PR][pr] lands there, but that is not the
path we will recommend, so this only includes the `ember-source` peer
dependency.

[pr]: DefinitelyTyped/DefinitelyTyped#63589
@chriskrycho chriskrycho changed the title Introduce ambient type definitions Feature: Introduce ambient type definitions Dec 12, 2022
@bertdeblock bertdeblock merged commit d48cd00 into ember-cli:master Dec 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert to TS or supply ambient definitions
2 participants