export default function(oldView, insertNewView) {
  return ... // A promise that resolves when the transition is finished.
});

export default function(oldView, insertNewView) {
  return ... // A promise that resolves when the transition is finished.
}

Update transition-skeleton.js