wikimedia/mediawiki-extensions-Wikibase

View on GitHub
view/lib/wikibase-tainted-ref/src/definitions/wikibase-js-datamodel/ReferenceList.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Reference } from '@/definitions/wikibase-js-datamodel/Reference';

export interface ReferenceList {
    length: number;
    equals( referenceList: ReferenceList ): boolean;
    isEmpty(): boolean;
    each( callback: eachCallback ): void;
    hasItem( listItem: Reference ): boolean;
}

type eachCallback = ( index: number, reference: Reference ) => void;