Exposing private methods(dollyin, dollyOut)

i am trying to expose the dolly in and out method in three js but after doing so by modifying three js library with the following code below , when trying to call the exposed methods is throws an error saying controls.dollyInCamera or controls.dollyOutCamera is not a function
Stack: Next js,Typescript,React js
three version: 0.146.0

this.dollyInCamera = function() {

			dollyIn( getZoomScale() );
			scope.update();
		};
	
		this.dollyOutCamera = function() {
	
			dollyOut( getZoomScale() );
			scope.update();
		};