Skip to content

Commit

Permalink
$mol_wire_race: removed crutch
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Oct 7, 2023
1 parent be57aa6 commit e3426a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wire/race/race.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit e3426a9

Please sign in to comment.