However, in looking at the implementation, I see that the lower level functions (in functions.ts) do not return undefined, and appear to throw exceptions on errors. I did not look deeper to verify if this was a perhaps type error on those functions (in functions) but seeing as the other methods in ClipperLibWrapper do not return undefined I'm wondering if the undefined can be removed from ClipperLibWrapper?
In
ClipperLibWrapper
I see thatclipToPaths
andclipToPolyTree
both have return values that are the native type, plus a union forundefined
:However, in looking at the implementation, I see that the lower level functions (in
functions.ts
) do not returnundefined
, and appear to throw exceptions on errors. I did not look deeper to verify if this was a perhaps type error on those functions (infunctions
) but seeing as the other methods inClipperLibWrapper
do not returnundefined
I'm wondering if theundefined
can be removed fromClipperLibWrapper
?Edit: I noticed there are other methods as well that define a union return type with
undefined
, but not all of them.