You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As one can inspect, JobData is of type any and it is used both as a first argument to cluster.queue() method as well as the data property of the TaskFunctionArguments interface. This approach does not provide sufficient type checking when we call the cluster.queue() method with two arguments. I'd suggest to use generic types here like this:
First of all, thank you for your work!
I have a minor suggestion on improving type checking fot the
cluster.queue()
method.Now we have this:
As one can inspect,
JobData
is of typeany
and it is used both as a first argument tocluster.queue()
method as well as thedata
property of theTaskFunctionArguments
interface. This approach does not provide sufficient type checking when we call thecluster.queue()
method with two arguments. I'd suggest to use generic types here like this:The text was updated successfully, but these errors were encountered: