UNPKG

@umbraco/json-models-builders

Version:
38 lines (37 loc) 1.09 kB
import { ElementValueBuilder } from './elementValueBuilder'; import { ElementVariantBuilder } from './elementVariantBuilder'; export declare class ElementBuilder { elementValueBuilder: ElementValueBuilder[]; elementVariantBuilder: ElementVariantBuilder[]; id: string; parentId: string; documentTypeId: string; constructor(); addValue(): ElementValueBuilder; addVariant(): ElementVariantBuilder; withId(id: string): this; withParentId(parentId: string): this; withDocumentTypeId(documentTypeId: string): this; build(): { values: { culture: string | null; segment: string | null; alias: string | null; value: any; editorAlias: string | null; entityType: string | null; }[]; variants: { culture: string | null; segment: string | null; name: string | null; }[]; id: string; parent: { id: string; } | null; documentType: { id: string; }; }; }