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

chore: convert store to ts #6239

Merged
merged 3 commits into from
Jul 11, 2019
Merged

chore: convert store to ts #6239

merged 3 commits into from
Jul 11, 2019

Conversation

runspired
Copy link
Contributor

This is the "minimal possible conversion" to change store.js to store.ts. E.g. herein we are not attempting to "type" the Store, merely converting the file ending to ts and making the minimal changes required such that it compiles.

In the process I discovered a few things:

  • InRSVP Deferred is only available on the "god object"
  • In @ember/utils typeOf is missing object as a potential return value
  • In @ember/debug deprecate has not yet been added now that the confusion in Ember itself has been resolved
  • In Ember ENV is not typed, to which we are allowing users to supply DS_WARN_ON_UNKNOWN_KEYS, we should likely phase this out.

@runspired runspired changed the title Cleanup/convert store to ts chore: convert store to ts Jul 11, 2019
@runspired runspired added the code-review Tracks PRs that require a code-review label Jul 11, 2019
Copy link
Contributor

@mike-north mike-north left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, although this surfaced some ugliness that I'll have to fix in @types/ember*

@runspired runspired force-pushed the cleanup/convert-store-to-ts branch from 84e1b28 to 771b36e Compare July 11, 2019 23:22
@runspired runspired merged commit 2cc4c60 into master Jul 11, 2019
@runspired runspired deleted the cleanup/convert-store-to-ts branch July 11, 2019 23:41
pete-the-pete pushed a commit to pete-the-pete/data that referenced this pull request Jul 23, 2019
* chore: convert store.js to store.ts

* drop type casting of Store

* address @mnorth feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-review Tracks PRs that require a code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants