Get the current value of an Observable as a reactive Signal.
Observable
Signal
function toSignal<T>(source: Observable<T> | Subscribable<T>): Signal<T>;function toSignal<T>(source: Observable<T> | Subscribable<T>, options: NoInfer<ToSignalOptions<T>> & { initialValue?: undefined; requireSync?: false; }): Signal<T>;function toSignal<T>(source: Observable<T> | Subscribable<T>, options: NoInfer<ToSignalOptions<T>> & { initialValue?: null; requireSync?: false; }): Signal<T>;function toSignal<T>(source: Observable<T> | Subscribable<T>, options: NoInfer<ToSignalOptions<T>> & { initialValue?: undefined; requireSync: true; }): Signal<T>;function toSignal<T, U extends T>(source: Observable<T> | Subscribable<T>, options: NoInfer<ToSignalOptions<T | U>> & { initialValue: U; requireSync?: false; }): Signal<T | U>;