Skip to content

fix(types): ensure correct oldValue typing based on lazy option #287

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

Closed
wants to merge 3 commits into from
Closed

fix(types): ensure correct oldValue typing based on lazy option #287

wants to merge 3 commits into from

Conversation

colinscz
Copy link

@colinscz colinscz commented Mar 19, 2020

  • adjust test cases

  • corrected typos

  • adjust method headers and add typings

Fixes #253

cnschwarz and others added 2 commits March 19, 2020 18:44
@colinscz
Copy link
Author

@LinusBorg this one has now the correct fork, sorry about that.

I am not sure regarding the test adjustments which have been done for the vuejs/core@c6a9787 fix. Could you please clarify if I need this as well?
Thank you!

if (prevCount) {
          prevCount + 1
}

@LinusBorg LinusBorg self-assigned this Mar 19, 2020
@colinscz colinscz changed the title WIP fix(types): ensure correct oldValue typing based on lazy option fix(types): ensure correct oldValue typing based on lazy option Mar 28, 2020
@antfu antfu self-assigned this May 31, 2020
@antfu
Copy link
Member

antfu commented May 31, 2020

Hi @cnschwarz, sorry for being late. As watch's api changed recently, this PR is kind of out of dated. This is already being covered in #311 (pikax@d6af20e) alongside with the new API changes.

Thanks a lot for your contribution. But I am sorry that I would suggest closing this PR after #311 gets merged.

@LinusBorg LinusBorg closed this Jun 2, 2020
@colinscz
Copy link
Author

colinscz commented Jun 3, 2020

Hi @antfu , thanks for the heads-up, I will keep looking for other issues to fix 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

watch should type old value as possibly undefined
3 participants