Skip to content
This repository was archived by the owner on Jul 30, 2018. It is now read-only.

Unnecessary generic parameter for Task.race  #316

@jason0x43

Description

@jason0x43

Bug

Task.race takes two generic parameters, an ExtensiblePromise subclass and the type expected to be the resolution of the race call. The first parameter is unnecessary as it is never used within the Task class.

Package Version: beta1

Code

const task = Task.race<void>([ ... ]);

Expected behavior:

This should compile.

Actual behavior:

TS complains that the call signature is invalid. The following does compile:

const task = Task.race<Task<void>, void>([ ... ]);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions