Unable to access `ShapeGeometry.parameters` in typescript

I’m using three.js v0.149.0 and trying to get the parameters property of ShapeGeometry which is documented here, But the type definition of three.js v0.149.0 doesn’t contain the parameters property (screenshot below). But when I debug the code while running the code, I can see the parameters property inside Shapegeometry.

How can I access it?

in r149, you can cast as any


const heartShape = new THREE.Shape();
const geometry = new THREE.ShapeGeometry( heartShape );
console.log((geometry as any).parameters)

But in r162, it is there. It looks like,