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:
splincode
2026-08-23 13:18:42 +03:00
committed by Leon Senft
parent 030779c4f0
commit a4a428ece2
+2 -2
View File
@@ -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