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