Skip to content

Commit 1929c4e

Browse files
committed
update js docs param
1 parent 44e3393 commit 1929c4e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/packages/documents/documents/repository/validation/document-validation.server.data-source.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
88
import { tryExecute } from '@umbraco-cms/backoffice/resources';
99
import type { UmbVariantId } from '@umbraco-cms/backoffice/variant';
10+
import type { UmbEntityUnique } from '@umbraco-cms/backoffice/entity';
1011

1112
/**
1213
* A server data source for Document Validation
@@ -30,10 +31,10 @@ export class UmbDocumentValidationServerDataSource {
3031
/**
3132
* Validate a new Document on the server
3233
* @param {UmbDocumentDetailModel} model - Document Model
33-
* @param parentUnique
34+
* @param parentUnique - Parent Unique
3435
* @returns {*}
3536
*/
36-
async validateCreate(model: UmbDocumentDetailModel, parentUnique: string | null = null) {
37+
async validateCreate(model: UmbDocumentDetailModel, parentUnique: UmbEntityUnique = null) {
3738
if (!model) throw new Error('Document is missing');
3839
if (!model.unique) throw new Error('Document unique is missing');
3940
if (parentUnique === undefined) throw new Error('Parent unique is missing');
@@ -60,6 +61,7 @@ export class UmbDocumentValidationServerDataSource {
6061
/**
6162
* Validate a existing Document
6263
* @param {UmbDocumentDetailModel} model - Document Model
64+
* @param {Array<UmbVariantId>} variantIds - Variant Ids
6365
* @returns {*}
6466
*/
6567
async validateUpdate(model: UmbDocumentDetailModel, variantIds: Array<UmbVariantId>) {

0 commit comments

Comments
 (0)