wikimedia/mediawiki-extensions-Wikibase

View on GitHub
view/resources/wikibase/store/store.EntityStore.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * @license GPL-2.0-or-later
 * @author Adrian Heine <adrian.heine@wikimedia.de>
 */
( function () {
    'use strict';

    /**
     * Entity store managing wikibase.datamodel.Entity objects.
     *
     * @constructor
     * @abstract
     */
    var SELF = function WbEntityStore() {};

    $.extend( SELF.prototype, {
        /**
         * Returns a promise resolving to the entity, undefined or null.
         *
         * @param {string} entityId
         * @return {jQuery.Promise}
         *         Resolved parameters:
         *         - {wikibase.datamodel.Entity|undefined|null}
         *         No rejected parameters.
         */
        get: util.abstractMember

    } );

    module.exports = SELF;

}() );