ngx-control-operators
Version:
RxJS operators for Angular reactive form controls
9 lines (8 loc) • 321 B
TypeScript
import { FormControl } from "@angular/forms";
import { Observable } from "rxjs";
/**
* Return observable containing only valid values from the given control.
* @param control target control
* @returns changes in value which are valid
*/
export declare function validValues<T>(control: FormControl<T>): Observable<T>;