Mostly just removing the mandatory Option<T> wrapper over the return type. Ideally the promises would be typed, but that seems to be more on the napi side, and both sync/async functions are handled appropriately.
D3V6U7N6CPS3P7PS245MM2N5UIZOKAP7QU7RUKYXBFMOAHYV47TAC bindgen_prelude::ObjectRef = |returned_result: Option<Uri>| returned_result.map(|object| object.inner.create_ref()).transpose();
Option<bindgen_prelude::ObjectRef> = |returned_result: Option<Uri>| returned_result.map(|object| object.inner.create_ref()).transpose();