Skip to content

Support Vue.delete(arr, index) in TypeScript definitions #5508

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

Merged
merged 3 commits into from
Apr 25, 2017
Merged

Support Vue.delete(arr, index) in TypeScript definitions #5508

merged 3 commits into from
Apr 25, 2017

Conversation

async0x42
Copy link
Contributor

@async0x42 async0x42 commented Apr 25, 2017

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

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

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:
Vue 2.2.0 added support for Vue.delete(arr, index). This updates the TypeScript definition to allow that.
Refs: https://github.com/vuejs/vue/releases/tag/v2.2.0

@ktsn
Copy link
Member

ktsn commented Apr 25, 2017

@async0x42 Thanks! Can we add a test for it here? https://github.com/vuejs/vue/blob/dev/types/test/vue-test.ts#L80

add typescript typings test for Vue.delete(arr, index)
@async0x42
Copy link
Contributor Author

Whoops, a test has been added now.

@yyx990803 yyx990803 merged commit 1288386 into vuejs:dev Apr 25, 2017
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.

3 participants