Skip to content

Commit

Permalink
fix(core): update onInit hook type definition
Browse files Browse the repository at this point in the history
fix #3722
  • Loading branch information
aitboudad committed Sep 16, 2023
1 parent 8ac1683 commit 0b7c553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/src/lib/models/fieldconfig.ts
Expand Up @@ -243,7 +243,7 @@ export interface FormlyFieldProps {
export type FormlyHookFn = (field: FormlyFieldConfig) => void;

export interface FormlyHookConfig {
onInit?: FormlyHookFn;
onInit?: FormlyHookFn | ((field: FormlyFieldConfig) => Observable<any>);
onChanges?: FormlyHookFn;
afterContentInit?: FormlyHookFn;
afterViewInit?: FormlyHookFn;
Expand Down

0 comments on commit 0b7c553

Please sign in to comment.