Skip to content

Missing TaskModifier and TaskFactory type definitions in v5 #597

Description

@jrmlt

In v4, there was no issue using registerModifier with TypeScript. In v5, however, types are no longer correctly inferred.

v4 v5
Image Image

It can also be seen in this example snippet:

function benchmarkModifier(taskFactory, option) {

When using TypeScript, the type of the taskFactory is not inferred, and properties like name, taskDefinition, or setTaskDefinition are not recognized.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions