argument of any cannot be assigned to never reactjs code example Example: string is not assignable to type never const result : string[] = [];