@umbraco/json-models-builders
Version:
Builders and models for Umbraco Sites
18 lines (17 loc) • 504 B
TypeScript
import { DocumentBuilder } from "./documentBuilder";
export declare class DocumentVariantBuilder {
parentBuilder: DocumentBuilder;
culture: string;
segment: string;
name: string;
constructor(parentBuilder: DocumentBuilder);
withCulture(culture: string): this;
withSegment(segment: string): this;
withName(name: string): this;
done(): DocumentBuilder;
build(): {
culture: string | null;
segment: string | null;
name: string | null;
};
}