3 ms·
I don't really see why you'd need that. In those sorts of circumstances I'd either add the new version of the function with a new name, or rename the function a
by tmorgan 16y ago
I don't really see why you'd need that. In those sorts of circumstances I'd either add the new version of the function with a new name, or rename the function and add an oldFunc = undefined line to keep the type checker happy.