Is it possible to support the type-based autocomplettion for those fallthrough attributes? #7981
Unanswered
neko-para
asked this question in
Help/Questions
Replies: 3 comments 1 reply
-
I'm also looking for a solution, or this should be powered by volar? |
Beta Was this translation helpful? Give feedback.
0 replies
-
export interface ButtonProps extends ButtonHTMLAttributes {
color?: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info';
icon?: string;
} <script lang="ts" setup>
import type { ButtonProps } from './types';
defineProps<ButtonProps & { variant?: 'contained' | 'outlined' | 'text' }>();
</script> |
Beta Was this translation helpful? Give feedback.
1 reply
-
See vuejs/rfcs#477. Discussion is welcome. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Suppose there are two components A and B that A "inherits" B.
The problem is that when I use outside, typescript cannot tell me that it needs
some_prop
.Is it possible to achieve that? I know that copying all props of component b and passing them manually could solve, but that's too ugly.
Beta Was this translation helpful? Give feedback.
All reactions