how to resolve promise as an observable code example Example: promise to observable typescript import { from } from 'rxjs'; const observable = from(promise);