UNPKG

@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.

13 lines (12 loc) 641 B
import type { CreateFilesConfig, GeneratedFile, ModuleFileExtension } from "../../core/core.models.js"; import type { FormatOptions } from "../../format/formatter.js"; export type GenerateSyncModelsConfig = { readonly environmentId: string; readonly addTimestamp: boolean; readonly managementApiKey: string; readonly moduleFileExtension: ModuleFileExtension; readonly managementBaseUrl?: string; readonly formatOptions?: FormatOptions; readonly disableComments?: boolean; } & CreateFilesConfig; export declare function generateSyncModelsAsync(config: GenerateSyncModelsConfig): Promise<readonly GeneratedFile[]>;