Skip to content

Missing TaskModifier and TaskFactory type definitions in v5 #597

@jrmlt

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.

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