[@types/p5] Vector has incorrect return types #69284
Unanswered
notSanil
asked this question in
Issues with a @types package
Replies: 1 comment
-
Thanks for the discussion about "p5", some useful links for everyone: Pinging the DT module owners: @p5-types. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There are a few function whose return types are incorrectly marked as
void
when it should beVector
. Namely, these are the static and non static overloads of functions of the Vector file.For instance, the return type of mult here is void, whereas the documentation clearly states that the static version of this function returns a new
Vector
whereas the non-static version modifies the original.There are a few other issues in the same file, all linked to #66294.
Beta Was this translation helpful? Give feedback.
All reactions