@@ -112,14 +112,14 @@ class CustomValidatorDirective implements Validator {
112
112
113
113
describe ( 'composeValidators' , ( ) => {
114
114
it ( 'should compose functions' , ( ) => {
115
- const dummy1 = ( _ : any /** TODO #9100 */ ) => ( { 'dummy1' : true } ) ;
116
- const dummy2 = ( _ : any /** TODO #9100 */ ) => ( { 'dummy2' : true } ) ;
115
+ const dummy1 = ( ) => ( { 'dummy1' : true } ) ;
116
+ const dummy2 = ( ) => ( { 'dummy2' : true } ) ;
117
117
const v = composeValidators ( [ dummy1 , dummy2 ] ) ! ;
118
118
expect ( v ( new FormControl ( '' ) ) ) . toEqual ( { 'dummy1' : true , 'dummy2' : true } ) ;
119
119
} ) ;
120
120
121
121
it ( 'should compose validator directives' , ( ) => {
122
- const dummy1 = ( _ : any /** TODO #9100 */ ) => ( { 'dummy1' : true } ) ;
122
+ const dummy1 = ( ) => ( { 'dummy1' : true } ) ;
123
123
const v = composeValidators ( [ dummy1 , new CustomValidatorDirective ( ) ] ) ! ;
124
124
expect ( v ( new FormControl ( '' ) ) ) . toEqual ( { 'dummy1' : true , 'custom' : true } ) ;
125
125
} ) ;
@@ -309,10 +309,10 @@ class CustomValidatorDirective implements Validator {
309
309
} ) ;
310
310
311
311
describe ( 'NgForm' , ( ) => {
312
- let form : any /** TODO #9100 */ ;
312
+ let form : NgForm ;
313
313
let formModel : FormGroup ;
314
- let loginControlDir : any /** TODO #9100 */ ;
315
- let personControlGroupDir : any /** TODO #9100 */ ;
314
+ let loginControlDir : NgModel ;
315
+ let personControlGroupDir : NgModelGroup ;
316
316
317
317
beforeEach ( ( ) => {
318
318
form = new NgForm ( [ ] , [ ] ) ;
@@ -384,7 +384,7 @@ class CustomValidatorDirective implements Validator {
384
384
} ) ;
385
385
386
386
it ( 'should set up sync validator' , fakeAsync ( ( ) => {
387
- const formValidator = ( c : any /** TODO #9100 */ ) => ( { 'custom' : true } ) ;
387
+ const formValidator = ( ) => ( { 'custom' : true } ) ;
388
388
const f = new NgForm ( [ formValidator ] , [ ] ) ;
389
389
390
390
tick ( ) ;
@@ -402,8 +402,8 @@ class CustomValidatorDirective implements Validator {
402
402
} ) ;
403
403
404
404
describe ( 'FormGroupName' , ( ) => {
405
- let formModel : any /** TODO #9100 */ ;
406
- let controlGroupDir : any /** TODO #9100 */ ;
405
+ let formModel : FormGroup ;
406
+ let controlGroupDir : FormGroupName ;
407
407
408
408
beforeEach ( ( ) => {
409
409
formModel = new FormGroup ( { 'login' : new FormControl ( null ) } ) ;
@@ -481,9 +481,9 @@ class CustomValidatorDirective implements Validator {
481
481
} ) ;
482
482
483
483
describe ( 'FormControlDirective' , ( ) => {
484
- let controlDir : any /** TODO #9100 */ ;
485
- let control : any /** TODO #9100 */ ;
486
- const checkProperties = function ( control : AbstractControl ) {
484
+ let controlDir : FormControlDirective ;
485
+ let control : FormControl ;
486
+ const checkProperties = function ( control : FormControl ) {
487
487
expect ( controlDir . control ) . toBe ( control ) ;
488
488
expect ( controlDir . value ) . toBe ( control . value ) ;
489
489
expect ( controlDir . valid ) . toBe ( control . valid ) ;
@@ -648,8 +648,8 @@ class CustomValidatorDirective implements Validator {
648
648
} ) ;
649
649
650
650
describe ( 'FormControlName' , ( ) => {
651
- let formModel : any /** TODO #9100 */ ;
652
- let controlNameDir : any /** TODO #9100 */ ;
651
+ let formModel : FormControl ;
652
+ let controlNameDir : FormControlName ;
653
653
654
654
beforeEach ( ( ) => {
655
655
formModel = new FormControl ( 'name' ) ;
0 commit comments