mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(forms): type async validator subscription
Use the Subscription type returned by Observable.subscribe instead of storing async validator subscriptions as any.
This commit is contained in:
@@ -14,7 +14,7 @@ import {
|
||||
untracked,
|
||||
ɵWritable as Writable,
|
||||
} from '@angular/core';
|
||||
import {Observable, Subject} from 'rxjs';
|
||||
import {Observable, Subject, Subscription} from 'rxjs';
|
||||
|
||||
import {
|
||||
asyncValidatorsDroppedWithOptsWarning,
|
||||
@@ -507,7 +507,7 @@ export abstract class AbstractControl<
|
||||
_hasRequired = signal(false);
|
||||
|
||||
private _parent: FormGroup | FormArray | null = null;
|
||||
private _asyncValidationSubscription: any;
|
||||
private _asyncValidationSubscription: Subscription | undefined;
|
||||
|
||||
/**
|
||||
* Contains the result of merging synchronous validators into a single validator function
|
||||
|
||||
Reference in New Issue
Block a user