view/lib/wikibase-tainted-ref/src/TaintedChecker.ts
import { Statement } from '@/definitions/wikibase-js-datamodel/Statement';
export default class TaintedChecker {
public check( oldStatement: Statement|null, newStatement: Statement ): boolean {
return oldStatement !== null &&
!( oldStatement.getClaim().getMainSnak().equals( newStatement.getClaim().getMainSnak() ) ) &&
oldStatement.getReferences().equals( newStatement.getReferences() ) &&
!oldStatement.getReferences().isEmpty();
}
}