make mixins helper type compatible with previous usage (#454) (bdcec69)
This is a fix to retain backward compatibility to the old mixins type. Although it is recommended not to manually specify mixin types via the type parameters of mixins. e.g.
// NOT recommended
@Component
class MyComp extends mixins<Foo & Bar>(Foo, Bar) {
// ...
}
Because you can pass any type to the parameter even if it is not matched with the actual mixin structure.
If you want to specify a generic type parameter for your class component, you can extend it before passing in mixins helper.
@Component
class GenricComponent<T> extends Vue {
value: T
}
// Specify the generic parameter by extending it
@Component
class SpecialComponent extends GenericComponent<string> {}
// Use the specified one as a mixin
@Component
class MyComp extends mixins(SpecialComponent) {
// ...
}
v7.2.5
Bug Fixes
make mixins declaration backward compatible (#436) (491a1b1)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
Bumps vue-class-component from 7.1.0 to 7.2.6.
Release notes
Sourced from vue-class-component's releases.
Commits
a094dff
[release] 7.2.62f93aea
[build] 7.2.6bdcec69
fix: make mixins helper type compatible with previous usage (#454)bb3c645
docs: refer to contribution guideline in readmeb1176e4
docs: create contribution guideline7f17ca6
docs: add a guide to annotate component type in decorator (#450)a9739d2
build(deps): bump http-proxy from 1.18.0 to 1.18.1 (#443)e48dd93
build(deps): bump prismjs from 1.18.0 to 1.21.0 (#438)f6f482b
build(deps): bump elliptic from 6.4.1 to 6.5.3 (#437)7a07c2b
[release] 7.2.5Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually