We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d96a10d commit d042973Copy full SHA for d042973
components/_util/props-util/initDefaultProps.ts
@@ -1,3 +1,4 @@
1
+import { PropType } from 'vue';
2
import { VueTypeValidableDef, VueTypeDef } from 'vue-types';
3
4
const initDefaultProps = <T>(
@@ -7,6 +8,8 @@ const initDefaultProps = <T>(
7
8
? U
9
: T[K] extends VueTypeDef<infer U>
10
11
+ : T[K] extends { type: PropType<infer U> }
12
+ ? U
13
: any;
14
},
15
): T => {
0 commit comments