UNPKG

@anoki/fse-common

Version:

Common types for FSE

30 lines (27 loc) 713 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 // This is the page that the FAQ belongs to faqIds: string[] // Related FAQs ids faqs?: Faq[] // Related FAQs }, FaqTranslations >