I am trying to write a function in typescript. But it is showing an error like “not assignable to parameter of type never”
@Input('starCount') public starCount: number = 5;
showStars() {
for (let index = 0; index < this.starCount; index++) {
this.ratingArr.push(index);
}
}