@anoki/fse-common
Version:
Common types for FSE
17 lines (15 loc) • 479 B
text/typescript
import { WithMongooseProps } from './with-mongoose-props'
import { ElementTypes, ReferenceEntityTypes, RenderTypes } from '../constants'
export type Element<TReference = any> = TReference &
WithMongooseProps<{
elementData: object
renderType: RenderTypes
referenceEntityType: ReferenceEntityTypes
reference: TReference
elementType: ElementTypes
orderPosition: number
referenceId?: string
sectionId: string
name: string
link: string
}>