-1

In a model class I'm calling the r3f hook get() to the camera controls

const { raycaster, camera, scene, gl, controls } =
      ViewerModel._shared.viewerState!();

the console log prints it as a camera control object. However, typescript is recognizing the object as a THREE.EventDispatcher | null type.

ts types console camera control

How can I get the camera controls from the get() state?

0