Skip to content

Commit

Permalink
fix(forms): expose ControlConfig in public API (#46594)
Browse files Browse the repository at this point in the history
This commit exposes the ControlConfig as a public API, so that the symbol can be used in applications.

PR Close #46594
  • Loading branch information
udaysonyy authored and thePunderWoman committed Jul 12, 2022
1 parent 93c65e7 commit c0ca3fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions goldens/public-api/forms/index.md
Expand Up @@ -175,6 +175,9 @@ export class CheckboxRequiredValidator extends RequiredValidator {
// @public
export const COMPOSITION_BUFFER_MODE: InjectionToken<boolean>;

// @public
export type ControlConfig<T> = [T | FormControlState<T>, (ValidatorFn | (ValidatorFn[]))?, (AsyncValidatorFn | AsyncValidatorFn[])?];

// @public
export abstract class ControlContainer extends AbstractControlDirective {
get formDirective(): Form | null;
Expand Down
2 changes: 1 addition & 1 deletion packages/forms/src/forms.ts
Expand Up @@ -41,7 +41,7 @@ export {FormArrayName, FormGroupName} from './directives/reactive_directives/for
export {NgSelectOption, SelectControlValueAccessor} from './directives/select_control_value_accessor';
export {SelectMultipleControlValueAccessor, ɵNgSelectMultipleOption} from './directives/select_multiple_control_value_accessor';
export {AsyncValidator, AsyncValidatorFn, CheckboxRequiredValidator, EmailValidator, MaxLengthValidator, MaxValidator, MinLengthValidator, MinValidator, PatternValidator, RequiredValidator, ValidationErrors, Validator, ValidatorFn} from './directives/validators';
export {FormBuilder, NonNullableFormBuilder, UntypedFormBuilder, ɵElement} from './form_builder';
export {ControlConfig, FormBuilder, NonNullableFormBuilder, UntypedFormBuilder, ɵElement} from './form_builder';
export {AbstractControl, AbstractControlOptions, FormControlStatus, ɵCoerceStrArrToNumArr, ɵGetProperty, ɵNavigate, ɵRawValue, ɵTokenize, ɵTypedOrUntyped, ɵValue, ɵWriteable} from './model/abstract_model';
export {FormArray, UntypedFormArray, ɵFormArrayRawValue, ɵFormArrayValue} from './model/form_array';
export {FormControl, FormControlOptions, FormControlState, UntypedFormControl, ɵFormControlCtor} from './model/form_control';
Expand Down

0 comments on commit c0ca3fc

Please sign in to comment.