I have an @Input() property with the data type string | string[], before upgrading to angular 16 it was working fine but after I upgraded to Angular 16 I have been getting this error.
I am not sure where I am wrong.
@Input() info: string | string[];
I am not sure what is wrong.
I already tried making the type like below.
export type stringOrArray = string | string[];
but got the same error.
New contributor
awais nawaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1