UNPKG

@anoki/fse-common

Version:

Common types for FSE

25 lines (24 loc) 649 B
import { WithBasicFields } from './with-basic-fields'; import { User } from './user'; import { Category } from './category'; import { EntityType } from './entity-type'; import { FaqTypes } from '../constants'; export type FaqTranslations = { question: string; answer: string; }; export type Faq = WithBasicFields<{ question: string; answer: string; faqType: FaqTypes; orderPosition: number; updatedById?: string; updatedBy?: User; categoryId: string; category?: Category; entityTypeId: string; entityType?: EntityType; pageId?: string; faqIds: string[]; faqs?: Faq[]; }, FaqTranslations>;