You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug FormControlState<unknown>; throws TS2344: Type 'unknown' does not satisfy the constraint 'FormControlValueTypes'. Type 'unknown' is not assignable to type 'Boxed<any>'. while any is working. I have a eslint rule that disallow the use of any and I can't see why unknown can't work.
I am in need of this because I have a reusable component that takes a FormControlState as an Input and then use it in the template, it could be a number, a string, ... but I don't care I don't need to know
Describe the bug
FormControlState<unknown>;
throwsTS2344: Type 'unknown' does not satisfy the constraint 'FormControlValueTypes'. Type 'unknown' is not assignable to type 'Boxed<any>'.
while any is working. I have a eslint rule that disallow the use of any and I can't see why unknown can't work.I am in need of this because I have a reusable component that takes a FormControlState as an Input and then use it in the template, it could be a number, a string, ... but I don't care I don't need to know
@Input() formControlState!: FormControlState<unknown>;
The text was updated successfully, but these errors were encountered: