Skip to content

fix(types): Allow WatchHandler to be of string type even when used with WatchOptions #9121

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

btoo
Copy link

@btoo btoo commented Nov 29, 2018

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

@btoo btoo changed the title fix(WatchHandler): Allow WatchHandler to be of string type even when … fix(WatchHandler): Allow WatchHandler to be of string type even when used with WatchOptions Nov 29, 2018
@yyx990803
Copy link
Member

yyx990803 commented Dec 1, 2018

Thanks for contributing but please do not include changes to dist files in the PR.

@yyx990803 yyx990803 changed the title fix(WatchHandler): Allow WatchHandler to be of string type even when used with WatchOptions fix(types): Allow WatchHandler to be of string type even when used with WatchOptions Dec 1, 2018
Copy link
Member

@yyx990803 yyx990803 left a comment

Choose a reason for hiding this comment

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

Please remove changes to vue.min.js

@btoo btoo force-pushed the watchhandler-string-type branch 3 times, most recently from 692de28 to 8d5ac8e Compare December 3, 2018 09:04
@btoo
Copy link
Author

btoo commented Dec 3, 2018

Hi @yyx990803, I've removed the changes to vue.min.js - my mistake.

Also, I wanted to let you know I made an additional change to allow for ComponentOptions's watch to be an array, and I've updated the tests to match the examples given at the watch documentation

…Options

fix(types): Allow ComponentOptions.watch to be array of WatchOptionsWithHandler or WatchHandler
fix(types): Update types test for watch api to match and extend the options shown in Vue documentation
@btoo btoo force-pushed the watchhandler-string-type branch from 8d5ac8e to 5cbd88d Compare December 3, 2018 09:24
@lilliemarck
Copy link

Is there any reason this was never merged?

@btoo btoo requested a review from yyx990803 July 20, 2020 22:39
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.

4 participants