Three/R168/Dragcontrols Getraycaster To Controls Raycaster
This codemod renames DragControls.getRaycaster() to controls.raycaster
Example
Before
taScene.dragcontrols.getRaycaster();
After
taScene.controls.raycaster;
Before
dragcontrols.getRaycaster();
After
controls.raycaster;
Before
if (something) {anything.dragcontrols.getRaycaster();}
After
if (something) {anything.controls.raycaster;}
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community