(formState: FormControlState<TValue> | TValue)
| 593 | } |
| 594 | |
| 595 | private _applyFormState(formState: FormControlState<TValue> | TValue) { |
| 596 | if (isFormControlState(formState)) { |
| 597 | (this as Writable<this>).value = this._pendingValue = formState.value; |
| 598 | formState.disabled |
| 599 | ? this.disable({onlySelf: true, emitEvent: false}) |
| 600 | : this.enable({onlySelf: true, emitEvent: false}); |
| 601 | } else { |
| 602 | (this as Writable<this>).value = this._pendingValue = formState; |
| 603 | } |
| 604 | } |
| 605 | }; |
| 606 | |
| 607 | interface UntypedFormControlCtor { |
no test coverage detected