What is the reason behind an empty array being interpreted as never
when using Angular's NonNullableFormBuilder
?
public form = this.fb.group({
item: [[]],
});
After running:
this.form .patchValue({
item: someValue,
});
I am faced with the error message:
Type 'SomeType[]' is not assignable to type 'never'.
Is there a solution to make it work properly?