Skip to content

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.

- 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

@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

@Windvis
Copy link
Contributor

Windvis commented Oct 5, 2024

This can probably be closed since #10506 was merged. That didn't include the type import comment for js projects though.

@chriskrycho chriskrycho deleted the stabilize-stable-ember-source-types branch October 31, 2024 19:30
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.

6 participants