UNPKG

@fluent-form/core

Version:

An Angular dynamic forms library powered by Fluent API and JSON.

22 lines (21 loc) 1.03 kB
import { type PipeTransform } from '@angular/core'; import { AbstractControl, FormArray, FormControl, FormGroup } from '@angular/forms'; import type { SchemaKey } from '../schemas'; import * as i0 from "@angular/core"; /** * @internal */ export declare class FluentControlPipe implements PipeTransform { /** * Use value as a key to get the instance from the form. * @param value * @param form * @param type Used to overload the method's return type. */ transform(value: SchemaKey | undefined, form: FormGroup | FormArray, type: 'control'): FormControl; transform(value: SchemaKey | undefined, form: FormGroup | FormArray, type: 'group'): FormGroup; transform(value: SchemaKey | undefined, form: FormGroup | FormArray, type: 'array'): FormArray; transform(value: SchemaKey | undefined, form: FormGroup | FormArray): AbstractControl; static ɵfac: i0.ɵɵFactoryDeclaration<FluentControlPipe, never>; static ɵpipe: i0.ɵɵPipeDeclaration<FluentControlPipe, "control", true>; }