See ViewTransition on MDN
type viewTransition = { updateCallbackDone: Promise.t<unit>, ready: Promise.t<unit>, finished: Promise.t<unit>,}
Read more on MDN
There are methods and helpers defined in ViewTransition .
type viewTransitionUpdateCallback = Promise.t<JSON.t>