UNPKG

@anoki/fse-common

Version:

Common types for FSE

22 lines (21 loc) 701 B
import { WithMongooseProps } from './with-mongoose-props'; import { WithTranslations } from './with-translations'; import { EntityTypeTypes, ReferenceEntityTypes } from '../constants'; import { Category } from './category'; export type EntityTypeTranslations = { name: string; description: string; }; export type EntityType = WithMongooseProps<EntityTypeTranslations & { categoryId: string; category?: Category; type: EntityTypeTypes; entityName: ReferenceEntityTypes; sectionLayout?: string; parentId: string; isPublished?: boolean; translations: WithTranslations<EntityTypeTranslations>; parent?: EntityType; pageUrl?: string; order?: number; }>;