UNPKG

burdy

Version:

Open Source Headless Platform

12 lines (11 loc) 692 B
import { IContentType } from "@shared/interfaces/model"; declare type IExportedContentType = Omit<IContentType, 'id' | 'createdAt' | 'updatedAt'>; declare type GetBurdyContentType = () => IExportedContentType; declare type GetBurdyContentTypes = () => IExportedContentType[]; interface ComponentFile { getContentType?: GetBurdyContentType; getContentTypes?: GetBurdyContentTypes; } declare const joinContentTypes: (files: ComponentFile[]) => IExportedContentType[]; declare const writeContentTypes: (contentTypes: IExportedContentType[], path?: string) => Promise<void>; export { GetBurdyContentType, GetBurdyContentTypes, IExportedContentType, joinContentTypes, writeContentTypes };