by gopher_protocol · 9y ago · 0 comments
function doSomething() : int {
return myPromise
.then(() => {
// ...do thing
/* what */
})
.catch(() => {
// ..do other thing
/* the heck */
});
}
becomes function doSomething(): int {
return myPromise
.then(() => {})
.catch(() => {});
}
Still a very nice pretty printer, though.