import { isFailure } from './isFailure' ; import { isSuccess } from './isSuccess' ; import { Loaded , RemoteData } from './RemoteData' ; export const isDoneLoading = < A , B > ( remoteData ) : remoteData is Loaded < A , B > => isSuccess ( remoteData ) || isFailure ( remoteData ) ;