style: better type hint

This commit is contained in:
eneller
2025-03-01 23:38:00 +01:00
parent 8e04cc97ba
commit b939f4d4f3

View File

@@ -47,7 +47,7 @@ export class AppComponent implements OnInit {
var playersPerTeam = Math.floor(names.length / this.numTeamsSelected);
let nameslen = names.length;
function* iter(list: any){
function* iter(list: any[]){
let index = 0;
while(true){
yield list[index % list.length];