import { Observable } from "rxjs" ; import { SUSPENSE } from "../SUSPENSE" ; import connectFactoryObservable from "./connectFactoryObservable" ; import connectObservable from "./connectObservable" ; import { EMPTY_VALUE } from "../internal/empty-value" ; param { Observable < T > } observable param { T } defaultValue returns remarks export function bind < T > ( observable , defaultValue ? ) ; param getObservable param defaultValue returns remarks export function bind < A extends unknown [ ] , O > ( getObservable , defaultValue ? ) ; export function bind ( observable , defaultValue ) { return ( typeof observable === "function" ? ( connectFactoryObservable as any ) : connectObservable ) ( observable , arguments . length > 1 ? defaultValue : EMPTY_VALUE ) ; }