-
-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit: 'out' the prop of 'getPosition' is now optional #506
base: dev
Are you sure you want to change the base?
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 optional So It's my propose that I want to make "out" to be opional. |
I mean...
or
or
or
does the above work for you? |
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.