wikimedia/mediawiki-extensions-Wikibase

View on GitHub
client/data-bridge/src/definitions/data-access/WritingEntityRepository.ts

Summary

Maintainability
A
0 mins
Test Coverage
import Entity from '@/datamodel/Entity';
import EntityRevision from '@/datamodel/EntityRevision';
import EntityRevisionWithRedirect from '@/datamodel/EntityRevisionWithRedirect';

interface WritingEntityRepository {
    /**
     * Rejects to TechnicalProblem or EntityNotFound errors in case of problems
     * @param assertUser Flag to determine if to do assert user when saving. Defaults to true
     */
    saveEntity( entity: Entity, base?: EntityRevision, assertUser?: boolean ): Promise<EntityRevisionWithRedirect>;
}
export default WritingEntityRepository;