import { checkEventStream, checkProperty } from "../_check" import { EventStream } from "../EventStream" import { Observable } from "../Observable" import { Property } from "../Property" /** * Restores the given observables type information. Fails if the * observable's runtime type is not EventSTream. * * @param observable - Observable whose type information will be restored * @public * @deprecated */ export function asEventStream(observable: Observable): EventStream { checkEventStream(observable) return observable as EventStream } /** * Restores the given observables type information. Fails if the * observable's runtime type is not Property. * * @param observable - Observable whose type information will be restored * @public * @deprecated */ export function asProperty(observable: Observable): Property { checkProperty(observable) return observable as Property }