@anoki/fse-common
Version:
Common types for FSE
26 lines (23 loc) • 686 B
text/typescript
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
}
>