-
Notifications
You must be signed in to change notification settings - Fork 22
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(deps): uses defineSlots macro over useSlots #3444
fix(deps): uses defineSlots macro over useSlots #3444
Conversation
Signed-off-by: John Cowen <[email protected]>
@@ -29,21 +29,20 @@ | |||
<template | |||
v-for="key in Object.keys(slots)" | |||
:key="key" | |||
#[key]="{ row, rowValue }" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't use rowValue
anywhere so I removed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
In #3416 I now also went for defineSlots
Nice! I guess we could lint for these things (in this case |
Sounds good 👍 🙂 |
7b6ab0f
into
kumahq:dependabot/npm_and_yarn/vue-tsc-2.2.0
Required for #3336 I got a bit more time to look at #3336 and it looks like Vue folks are moving more and more to macro-based `defineSlots` for defining slots. Moving everything to use defineSlots worked in most areas and I only had to define the types also for areas where we actually need the type information, otherwise defineSlots is a `Record<string, any>` (see https://vuejs-language-tools.vercel.app/features/slots#how-to-handle-indeterminate-slot-types) There 'may' be some other places where it would be advantageous to define our slots as more than `Record<string, any>` but for the moment this is enough to unblock the upgrade. We can add any more type information if required in later PRs. Also see https://vuejs.org/api/sfc-script-setup#defineslots Signed-off-by: John Cowen <[email protected]>
From #3444 I got a bit more time to look at #3336 and it looks like Vue folks are moving more and more to macro-based `defineSlots` for defining slots. Moving everything to use defineSlots worked in most areas and I only had to define the types also for areas where we actually need the type information, otherwise defineSlots is a `Record<string, any>` (see https://vuejs-language-tools.vercel.app/features/slots#how-to-handle-indeterminate-slot-types) There 'may' be some other places where it would be advantageous to define our slots as more than `Record<string, any>` but for the moment this is enough to unblock the upgrade. We can add any more type information if required in later PRs. Also see https://vuejs.org/api/sfc-script-setup#defineslots Then also: --- Bumps [vue-tsc](https://github.com/vuejs/language-tools/tree/HEAD/packages/tsc) from 2.1.10 to 2.2.0. - [Release notes](https://github.com/vuejs/language-tools/releases) - [Changelog](https://github.com/vuejs/language-tools/blob/master/CHANGELOG.md) - [Commits](https://github.com/vuejs/language-tools/commits/v2.2.0/packages/tsc) --- updated-dependencies: - dependency-name: vue-tsc dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Required for #3336
I got a bit more time to look at #3336 and it looks like Vue folks are moving more and more to macro-based
defineSlots
for defining slots.Moving everything to use defineSlots worked in most areas and I only had to define the types also for areas where we actually need the type information, otherwise defineSlots is a
Record<string, any>
(see https://vuejs-language-tools.vercel.app/features/slots#how-to-handle-indeterminate-slot-types)There 'may' be some other places where it would be advantageous to define our slots as more than
Record<string, any>
but for the moment this is enough to unblock the upgrade. We can add any more type information if required in later PRs.Also see https://vuejs.org/api/sfc-script-setup#defineslots