In v4, there was no issue using registerModifier with TypeScript. In v5, however, types are no longer correctly inferred.
| v4 |
v5 |
 |
 |
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.
In v4, there was no issue using
registerModifierwith TypeScript. In v5, however, types are no longer correctly inferred.It can also be seen in this example snippet:
ember-concurrency/packages/test-app/app/task-modifiers/benchmark.js
Line 5 in eb011b0
When using TypeScript, the type of the
taskFactoryis not inferred, and properties likename,taskDefinition, orsetTaskDefinitionare not recognized.