Closed hanakannzashi closed 1 year ago
The signatures are written this way to prevent undefined
being able to be passed as the first argument and a rounding mode as the second argument, which would be a mistake.
The typings are essentially considering arity as important.
This is slightly more strict than allowing a single undefined
argument to be treated the same way as a call that takes zero arguments.
I think the easiest and perhaps clearest solution would be for you to put a typeof
check in your handle
function, branching with the appropriate call-signature depending on its result.
I have a function like this
This because the lib doesn't export raw function signature. Currently, two signatures allowd
I think we should export raw one
A lot of functions have this issue