File tree 4 files changed +8
-4
lines changed
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 69
69
"prepublish" : " npm run build"
70
70
},
71
71
"main" : " dist/source/index.js" ,
72
+ "typings" : " dist/source/index.d.ts" ,
72
73
"repository" : " https://github.com/angular-redux/form" ,
73
74
"license" : " MIT"
74
75
}
Original file line number Diff line number Diff line change @@ -111,11 +111,11 @@ export class ConnectArray extends ControlContainer implements OnInit {
111
111
return controlPath ( this . key , this . parent ) ;
112
112
}
113
113
114
- get validator ( ) : ValidatorFn {
114
+ get validator ( ) : ValidatorFn | null {
115
115
return Validators . compose ( this . rawValidators ) ;
116
116
}
117
117
118
- get asyncValidator ( ) : AsyncValidatorFn {
118
+ get asyncValidator ( ) : AsyncValidatorFn | null {
119
119
return Validators . composeAsync ( this . rawAsyncValidators ) ;
120
120
}
121
121
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
} from '@angular/forms' ;
11
11
12
12
export function controlPath ( name : string , parent : ControlContainer ) : string [ ] {
13
- return [ ...parent . path , name ] ;
13
+ return [ ...( parent . path || [ ] ) , name ] ;
14
14
}
15
15
16
16
export function selectValueAccessor (
Original file line number Diff line number Diff line change 26
26
"useBabel" : true ,
27
27
"useCache" : false
28
28
},
29
- "angularCompilerOptions" : {},
29
+ "angularCompilerOptions" : {
30
+ "strictMetadataEmit" : true ,
31
+ "skipTemplateCodegen" : true
32
+ },
30
33
"exclude" : [
31
34
" node_modules" ,
32
35
" dist" ,
You can’t perform that action at this time.
0 commit comments