(control: StepControl)
| 632 | } |
| 633 | |
| 634 | function isInvalid(control: StepControl): boolean { |
| 635 | // Note: it's a bit redundant to have both `isValid` and `isInvalid`. We need both, because |
| 636 | // some internal apps mock out `invalid` specifically so `!valid` won't hit the mock. |
| 637 | return isField(control) ? control().invalid() : control.invalid; |
| 638 | } |
| 639 | |
| 640 | function isPending(control: StepControl): boolean { |
| 641 | return isField(control) ? control().pending() : control.pending; |
no test coverage detected