You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/runtime-core/src/componentProps.ts
+7-5
Original file line number
Diff line number
Diff line change
@@ -120,11 +120,13 @@ type InferPropType<T> = [T] extends [null]
120
120
: V
121
121
: T
122
122
123
-
exporttypeExtractPropTypes<O>=Oextendsobject
124
-
? {[KinkeyofO]?: unknown}&// This is needed to keep the relation between the option prop and the props, allowing to use ctrl+click to navigate to the prop options. see: #3656
125
-
{[KinRequiredKeys<O>]: InferPropType<O[K]>}&
126
-
{[KinOptionalKeys<O>]?: InferPropType<O[K]>}
127
-
: {[Kinstring]: any}
123
+
exporttypeExtractPropTypes<O>={
124
+
// use `keyof Pick<O, RequiredKeys<O>>` instead of `RequiredKeys<O>` to support IDE features
0 commit comments