import { OperatorFunction } from "rxjs" ; import { map } from "rxjs/operators" ; import { AsyncState } from "./toAsyncState" ; export function someLoading ( ) { return map ( states => states . some ( s => s . loading ) ) ; }