@umbraco/json-models-builders
Version:
Builders and models for Umbraco Sites
26 lines (25 loc) • 684 B
TypeScript
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;
};
}