-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
Update TS Guides for Native Types #2064
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for ember-guides ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
2bd0a11
to
8aea5da
Compare
8aea5da
to
8948e56
Compare
</p> | ||
<p> | ||
For improved (albeit less stable) types, you can switch to <a href="https://github.com/emberjs/data/blob/main/guides/typescript/index.md">EmberData's alpha native types, documented at this link</a>. Using the EmberData alpha native types will also require <a href="https://blog.emberjs.com/stable-typescript-types-in-ember-5-1/">switching to the Ember native types</a>, which are guaranteed to always be 100% correct and 100% up to date! | ||
The following content applies to the native EmberData types, which are currently considered "unstable" (though in practice, they've been pretty stable as of late). These guides may change as the EmberData types are finalized. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: I only updated the existing docs to make sure they weren't wrong. I did not add any new docs re: requests, builders, includes, etc. (Will do so in a separate PR.)
This looks like a lot of good content, should we mark ready-for-review and try to get this merged? Even if there is further content needed to be "done" documenting native types. |
}, | ||
"types": [ | ||
"ember-source/types", | ||
"./node_modules/ember-data/unstable-preview-types", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"./node_modules/ember-data/unstable-preview-types", | |
"ember-data/unstable-preview-types", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we change this? IIRC the output in my diff is direct copy-pasta from actual --typescript
output, but that was also weeks ago when I originally made this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's recent as of a couple days ago
- [BUGFIX release]: tsconfig.json referenced paths to types instead of imports ember-cli/ember-cli#10612
- Add smoke-tests for types, build, etc emberjs/data#9633
- Add tests for usage in npm and yarn repos emberjs/data#9630
- 6.1, ember-data TS config is broken in monorepo when using npm or yarn@1 ember-cli/ember-cli#10611
"ember-source/types", | ||
"./node_modules/ember-data/unstable-preview-types", | ||
// ...more ember-data types... | ||
"./node_modules/@warp-drive/core-types/unstable-preview-types" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"./node_modules/@warp-drive/core-types/unstable-preview-types" | |
"@warp-drive/core-types/unstable-preview-types" |
No description provided.