@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.
10 lines (9 loc) • 455 B
TypeScript
import type { LibraryType, LiteralUnion, ModuleFileExtension } from "./core.models.js";
export declare function getImporter(moduleFileExtension: ModuleFileExtension): {
getGeneratedFilename: (filename: string) => string;
importType: (data: {
readonly filePathOrPackage: LiteralUnion<LibraryType>;
readonly importValue: string | readonly string[];
}) => string;
getBarrelExportCode(filenames: readonly string[]): string;
};