@kontent-ai/model-generator
Version:
This utility generates strongly-typed models for Delivery JS SDK, Migration toolkit or just general scripting to improve the experience when referencing Kontent.ai related objects.
17 lines (16 loc) • 700 B
TypeScript
import type { EnvironmentModels } from "@kontent-ai/management-sdk";
export type CommentLine = {
readonly name: string;
readonly value: string | undefined;
};
export declare function wrapComment(comment: string, options: {
readonly disableComments: boolean;
readonly lines?: readonly CommentLine[];
}): string;
export declare function toSafeCommentText(text: string): string;
export declare function formatGuidelinesComment(guidelines: string): string;
export declare function getEnvironmentInfoComment(data: {
readonly timestampDate?: Date;
readonly disableComments: boolean;
readonly environmentInfo: Readonly<EnvironmentModels.EnvironmentInformationModel>;
}): string;