File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ const shapeType = VueTypes.shape({
6363 hobbies : VueTypes . array ,
6464} ) . def ( { name : 'test' , age : 100 , hobbies : [ true ] } ) . isRequired ;
6565
66-
6766const shapeTypeLoose = VueTypes . shape ( {
6867 name : String ,
6968 surname : { type : String , default : 'Doe' } ,
Original file line number Diff line number Diff line change @@ -26,14 +26,12 @@ export interface VueTypeInstanceOf<T extends Constructor> extends VueTypeDef<Ins
2626 type : T ;
2727}
2828
29- export interface VueTypeShape < T > extends VueTypeDef < T > {
30- readonly def : < P extends defaultType < Partial < T > > > ( def : P ) => this & { default : P } ;
29+ export interface VueTypeShape < T , D = DefaultFactory < Partial < T > > > extends VueTypeDef < T , D > {
3130 readonly loose : VueTypeLooseShape < T > ;
3231}
3332
34- export interface VueTypeLooseShape < T > extends VueTypeShape < T > {
33+ export interface VueTypeLooseShape < T , D = DefaultFactory < Partial < T & { [ key : string ] : any } > > > extends VueTypeShape < T , D > {
3534 readonly _vueTypes_isLoose : true ;
36- readonly def : < D extends defaultType < Partial < T > & { [ key : string ] : any } > > ( def : D ) => this & { default : D } ;
3735}
3836
3937export interface VueTypeArrayOf < T > extends VueTypeDef < T [ ] > {
You can’t perform that action at this time.
0 commit comments