UNPKG

wikibase-edit

Version:

Edit Wikibase from NodeJS

9 lines 402 B
import { newError } from '../error.js'; import { editEntity } from './edit.js'; export async function createEntity(params, properties, instance, config) { if ('id' in params && params.id) { throw newError("a new entity can't already have an id", { id: params.id }); } return editEntity({ create: true, ...params }, properties, instance, config); } //# sourceMappingURL=create.js.map