diff --git a/wire/race/race.ts b/wire/race/race.ts index 14d41f067d0..635621431ca 100644 --- a/wire/race/race.ts +++ b/wire/race/race.ts @@ -4,9 +4,7 @@ namespace $ { export function $mol_wire_race< Tasks extends ( ( ... args: any )=> any )[] >( ... tasks: Tasks ): { - [ index in keyof Tasks ]: index extends number - ? ReturnType< Tasks[ index ] > - : Tasks[ index ] + [ index in keyof Tasks ]: ReturnType< Tasks[ index ] > } { const results = tasks.map( task => {