@anoki/fse-common
Version:
Common types for FSE
26 lines (23 loc) • 564 B
text/typescript
import { AssetType } from './asset-type'
import { Upload } from './upload-file'
import { WithBasicFields } from './with-basic-fields'
export type DocumentTranslations = {
name: string
description: string,
accessibilityTitle?: string,
altText?: string,
extendedDescription?: string,
transcription?: string,
functionalLabel?: string
}
export type Document = WithBasicFields<
{
name: string
description: string
file?: Upload
isDecorative?: boolean
documentType?: AssetType
mainLanguage?: string
},
DocumentTranslations
>