File tree 2 files changed +11
-7
lines changed
2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -115,14 +115,15 @@ export function props<
115
115
Props
116
116
>
117
117
118
- export function props <
119
- PropsOptions extends ComponentObjectPropsOptions ,
120
- Props = Readonly < ExtractPropTypes < PropsOptions > >
121
- > (
118
+ export function props < PropsOptions extends ComponentObjectPropsOptions > (
122
119
propsOptions : PropsOptions
123
120
) : VueConstructor <
124
- Vue < Props , { } , VNodeProps & AllowedComponentProps & ComponentCustomProps > &
125
- Props
121
+ Vue <
122
+ Readonly < ExtractPropTypes < PropsOptions , false > > ,
123
+ { } ,
124
+ VNodeProps & AllowedComponentProps & ComponentCustomProps
125
+ > &
126
+ Readonly < ExtractPropTypes < PropsOptions > >
126
127
>
127
128
128
129
export function props (
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ describe('JSX', () => {
10
10
required : true ,
11
11
} ,
12
12
13
- optional : Number ,
13
+ optional : {
14
+ type : Number ,
15
+ default : 0 ,
16
+ } ,
14
17
} )
15
18
16
19
class App extends Props { }
You can’t perform that action at this time.
0 commit comments