Closed OlivierZal closed 1 year ago
This one seems correct. You should always use the type of V3.
@jeroenwienk, my bad, I wrote the wrong way.
My point is that the function works well without the (second) opts
, what means that it needs to be marked as optional in the definition:
opts?: {
duration?: number,
}
I've updated the description accordingly with the following:
setCapabilityValue(
opts: {
capabilityId: string,
value: number | boolean | string,
opts?: {
duration?: number,
}
}
)
It is marked as optional in the types.
I don't know when it has been solved but now it's good. Thanks!
should rather be: