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