UNPKG

@rxap/forms

Version:

This package provides a set of tools and directives to simplify working with Angular forms, including reactive forms, custom validators, and form directives for handling loading, submitting, and error states. It offers decorators for defining forms and co

10 lines (9 loc) 490 B
import { ControlValueAccessor as NgControlValueAccessor } from '@angular/forms'; export declare abstract class ControlValueAccessor<T = any> implements NgControlValueAccessor { abstract writeValue(value: T): void; onChange?: ((value: T | null) => void) | undefined; onTouched?: (() => void) | undefined; registerOnChange(fn: (value: T | null) => void): void; registerOnTouched(fn: () => void): void; setDisabledState?: ((isDisabled: boolean) => void) | undefined; }