UNPKG

@umbraco/json-models-builders

Version:
26 lines (25 loc) 684 B
import { MediaTypeBuilder } from "./mediaTypeBuilder"; export declare class MediaTypeContainerBuilder { parentBuilder: MediaTypeBuilder; id: string; parentId: string; name: string; type: string; sortOrder: number; constructor(parentBuilder: MediaTypeBuilder); withId(id: string): this; withParentId(parentId: string): this; withName(name: string): this; withType(type: string): this; withSortOrder(sortOrder: number): this; done(): MediaTypeBuilder; build(): { id: string | null; parent: { id: string; } | null; name: string; type: string; sortOrder: number; }; }