UNPKG

@anoki/fse-common

Version:

Common types for FSE

15 lines (14 loc) 487 B
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; }>;