import { has } from 'lodash/fp' ; import { ImportExceptionsOk , ImportResponse } from '../../import_exception_list_and_items' ; param importExceptionsResponse { array } returns { boolean } export const isImportRegular = ( importExceptionsResponse ) : importExceptionsResponse is ImportExceptionsOk => { return ! has ( 'error' , importExceptionsResponse ) && has ( 'status_code' , importExceptionsResponse ) ; } ;