Skip to content

Conversation

Mister-Hope
Copy link
Member

No description provided.

@Mister-Hope Mister-Hope requested a review from meteorlxy May 11, 2023 11:19
@Mister-Hope
Copy link
Member Author

Note: eslint-plugin-vue does not add defineSlots maros yet, so there is a workaround to hide no-def error until new version that supports it.

import PageNav from '@theme/PageNav.vue'
defineSlots<{
'top'?: (props: Record<never, never>) => any
Copy link
Member

@meteorlxy meteorlxy May 11, 2023

Choose a reason for hiding this comment

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

Any way to avoid/simplify those verbose Record<never, never> and any ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently volar complains if props are not provided, the any is expected.

See https://blog.vuejs.org/posts/vue-3-3#typed-slots-with-defineslots and vuejs/core#7982

@meteorlxy meteorlxy changed the title chore: use vue3.3 feat: bump vue to 3.3 May 11, 2023
@Mister-Hope
Copy link
Member Author

Done

@meteorlxy meteorlxy merged commit bebadea into main May 11, 2023
@meteorlxy meteorlxy deleted the vue3.3 branch May 11, 2023 13:20
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.

2 participants