Skip to content

Commit

Permalink
Refactor: Specify Provider type for DEFAULT_VALUE_ACCESSOR
Browse files Browse the repository at this point in the history
Change from `any` to `Provider` type for enhanced type safety and clarity
  • Loading branch information
ChellappanRajan committed Jan 23, 2024
1 parent 2f1796f commit feee84a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/forms/src/directives/default_value_accessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
*/

import {ɵgetDOM as getDOM} from '@angular/common';
import {Directive, ElementRef, forwardRef, Inject, InjectionToken, Optional, Renderer2} from '@angular/core';
import {Directive, ElementRef, forwardRef, Inject, InjectionToken, Optional, Provider, Renderer2} from '@angular/core';

import {BaseControlValueAccessor, ControlValueAccessor, NG_VALUE_ACCESSOR} from './control_value_accessor';

export const DEFAULT_VALUE_ACCESSOR: any = {
export const DEFAULT_VALUE_ACCESSOR: Provider = {
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => DefaultValueAccessor),
multi: true
Expand Down

0 comments on commit feee84a

Please sign in to comment.