Edit: 'out' the prop of 'getPosition' is now optional#506
Edit: 'out' the prop of 'getPosition' is now optional#506kimgh06 wants to merge 1 commit intoyomotsu:devfrom
Conversation
|
Thank you for bringing this to my attention. Therefore, we could consider removing the line below: (This line was primarily included for backward compatibility) What do you think? |
|
What do you think about using "rename-import" for your imports? This approach could help your avoid conflicts or type import |
|
It's a good propose, but that's not what I am saying. I just would like to use like this without a type error: const camPosition: Vector3 = camControlRef.current.getPosition(); // <- But now it occurs a type error of "Expected 1-2 arguments, but got 0." that means "out" and "receiveEndValue" which is optionalSo It's my propose that I want to make "out" to be opional. |
|
I mean... or or or does the above work for you? |
9f1d761 to
38c26ca
Compare



Hello,
I just edited a little of codes of 'CameraControls.ts' file,
to
The previous code returns 'out' and sets 'out' twice.
if I try to get the position on your purpose, I shall try this:
However, actually i try to get the position of a camera like this:
but this code works and return the position of a camera.
And It has a problem using 'pmndrs/drei' package depending on this package with TypeScript, It occur type error "Expected 1-2 arguments, but got 0".
So, I have an idea how about being it optional for using the function in one line.
I hope you read this as soon as possible and answer.