feat(forms): allow to compile forms in strictNullChecks mode (#14679)
Closes #14667 PR Close #14679
This commit is contained in:

committed by
Miško Hevery

parent
2d78c8cc05
commit
5486e5417b
@ -8,6 +8,7 @@
|
||||
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
import {AbstractControl} from '../model';
|
||||
import {ValidationErrors} from './validators';
|
||||
|
||||
/**
|
||||
* Base class for control directives.
|
||||
@ -27,7 +28,7 @@ export abstract class AbstractControlDirective {
|
||||
|
||||
get pending(): boolean { return this.control ? this.control.pending : null; }
|
||||
|
||||
get errors(): {[key: string]: any} { return this.control ? this.control.errors : null; }
|
||||
get errors(): ValidationErrors|null { return this.control ? this.control.errors : null; }
|
||||
|
||||
get pristine(): boolean { return this.control ? this.control.pristine : null; }
|
||||
|
||||
|
Reference in New Issue
Block a user