We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
default
1 parent 425310e commit c901dcaCopy full SHA for c901dca
packages/runtime-core/src/componentProps.ts
@@ -135,7 +135,8 @@ const enum BooleanFlags {
135
136
// extract props which defined with default from prop options
137
export type ExtractDefaultPropTypes<O> = O extends object
138
- ? { [K in DefaultKeys<O>]: InferPropType<O[K]> }
+ // use `keyof Pick<O, DefaultKeys<O>>` instead of `DefaultKeys<O>` to support IDE features
139
+ ? { [K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]> }
140
: {}
141
142
type NormalizedProp =
0 commit comments