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

Fix: premature TS deprecation warning #3243

Merged
merged 2 commits into from
Sep 21, 2020
Merged

Conversation

steffenagger
Copy link
Contributor

@steffenagger steffenagger commented Sep 21, 2020

What, How & Why?

When using create<T>(...) without the 3rd optional argument, the deprecation warning for create<T>(..., update?: boolean) currently triggers.
This change just reorders the TS declarations for create(...), to not trigger the deprecation warning prematurely.

Quite visual in the lastest vscode:

If this PR adds or changes public API's:

  • typescript definitions file is updated
  • jsdoc files updated
  • Chrome debug API is updated if API is available on React Native

@steffenagger steffenagger self-assigned this Sep 21, 2020
Copy link
Member

@kraenhansen kraenhansen left a comment

Choose a reason for hiding this comment

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

Havn't tested it myself, but the change seems legit! :)

@steffenagger steffenagger merged commit f907ca4 into v10 Sep 21, 2020
@steffenagger steffenagger deleted the sa/v10/ts-deprecation-warning branch September 21, 2020 10:02
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants