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: Enable Ember's stable types #10270

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chriskrycho
Copy link
Contributor

@chriskrycho chriskrycho commented May 8, 2023

  • In TS, add an import 'ember-source/types' statement.
  • In JS, add a /** @typedef {import('ember-source/types')} */ comment.

This is sufficient to make the types shipped in Ember itself as of emberjs/ember.js#20449 "enabled" for end users out of the box. It should be coordinated with an ember-cli-typescript release which removes the @types/ember packages from its own blueprint so that users do not get those installed needlessly.

(Maintainers: what's the best spot to test this?)


Note: this is currently a Draft while we discuss how best to roll it out, given that Ember Data's types (@types/ember-data etc.) are not currently compatible with these types.

yarn.lock Outdated Show resolved Hide resolved
- In TS, add an `import 'ember-source/types'` statement.
- In JS, add a `/** @typedef {import('ember-source/types')} */` comment.
@chriskrycho chriskrycho force-pushed the stabilize-stable-ember-source-types branch from fd63b41 to e95e918 Compare May 11, 2023 13:20
@kategengler
Copy link
Member

I'm not positive on where to test it (I'm somewhat surprised nothing fails with this added). I'd think in https://github.com/ember-cli/ember-cli/blob/master/tests/acceptance/new-test.js and/or https://github.com/ember-cli/ember-cli/blob/master/tests/acceptance/init-test.js

@chriskrycho chriskrycho marked this pull request as draft May 12, 2023 14:14
@kategengler
Copy link
Member

Is this still relevant?

@NullVoxPopuli
Copy link
Contributor

blocked on ember-data being compatible with the stable types

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.

None yet

3 participants