|
| 1 | +## API Report File for "@angular/forms_signals_compat" |
| 2 | + |
| 3 | +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
| 4 | +
|
| 5 | +```ts |
| 6 | + |
| 7 | +import { AbstractControl } from '@angular/forms'; |
| 8 | +import * as _angular_forms from '@angular/forms'; |
| 9 | +import { ControlValueAccessor } from '@angular/forms'; |
| 10 | +import { DestroyableInjector } from '@angular/core'; |
| 11 | +import { FormControlStatus } from '@angular/forms'; |
| 12 | +import * as i0 from '@angular/core'; |
| 13 | +import { Injector } from '@angular/core'; |
| 14 | +import { NgControl } from '@angular/forms'; |
| 15 | +import { Signal } from '@angular/core'; |
| 16 | +import { ValidationErrors } from '@angular/forms'; |
| 17 | +import { ValidatorFn } from '@angular/forms'; |
| 18 | +import { WritableSignal } from '@angular/core'; |
| 19 | +import { ɵCONTROL } from '@angular/core'; |
| 20 | +import { ɵControl } from '@angular/core'; |
| 21 | +import { ɵFieldState } from '@angular/core'; |
| 22 | +import { ɵInteropControl } from '@angular/core'; |
| 23 | + |
| 24 | +// @public |
| 25 | +export function compatForm<TModel>(model: WritableSignal<TModel>): FieldTree<TModel>; |
| 26 | + |
| 27 | +// @public |
| 28 | +export function compatForm<TModel>(model: WritableSignal<TModel>, schemaOrOptions: SchemaOrSchemaFn<TModel> | CompatFormOptions): FieldTree<TModel>; |
| 29 | + |
| 30 | +// @public |
| 31 | +export function compatForm<TModel>(model: WritableSignal<TModel>, schema: SchemaOrSchemaFn<TModel>, options: CompatFormOptions): FieldTree<TModel>; |
| 32 | + |
| 33 | +// @public |
| 34 | +export type CompatFormOptions = Omit<FormOptions, 'adapter'>; |
| 35 | + |
| 36 | +// @public |
| 37 | +export class CompatValidationError<T = unknown> implements ValidationError { |
| 38 | + constructor({ context, kind, control }: { |
| 39 | + context: T; |
| 40 | + kind: string; |
| 41 | + control: AbstractControl; |
| 42 | + }); |
| 43 | + // (undocumented) |
| 44 | + readonly context: T; |
| 45 | + // (undocumented) |
| 46 | + readonly control: AbstractControl; |
| 47 | + // (undocumented) |
| 48 | + readonly field: FieldTree<unknown>; |
| 49 | + // (undocumented) |
| 50 | + readonly kind: string; |
| 51 | + // (undocumented) |
| 52 | + readonly message?: string; |
| 53 | +} |
| 54 | + |
| 55 | +// (No @packageDocumentation comment for this package) |
| 56 | + |
| 57 | +``` |
0 commit comments