Hacker News new | ask | show | jobs
by tmorgan 5577 days 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.