I'm using the <PerspectiveCamera/> component, in a React typescript project, with R3F extension. As I use the component, I receive type error that I need to provide these 3 props as undefined.
<TheatrePerspectiveCamera
theatreKey='Camera'
makeDefault
position={[0, 0, 0]}
fov={40}
near={0.1}
far={70}
//These props need to be included
attachArray={undefined}
attachObject={undefined}
attachFns={undefined}
/>
I compare between this and drei <PerspectiveCamera/> component type .d.ts file, I found these 3 types are not existed in their package, but have in theatre instead. Three and drei documentation does not mention about these 3 types.
Version:
I'm using the
<PerspectiveCamera/>
component, in a React typescript project, with R3F extension. As I use the component, I receive type error that I need to provide these 3 props as undefined.I compare between this and drei
<PerspectiveCamera/>
component type.d.ts
file, I found these 3 types are not existed in their package, but have in theatre instead.Three
anddrei
documentation does not mention about these 3 types. Version: