contentfully
Version:
A simple but performant REST client for Contentful.
17 lines (13 loc) • 432 B
text/typescript
import type {BLOCKS, INLINES} from '@contentful/rich-text-types'
import type {JsonObject} from 'type-fest'
export interface RichText {
nodeType: RichText.NodeType
content?: RichText[]
value?: string
marks?: RichText.MarkType[]
data?: JsonObject
}
export namespace RichText {
export type MarkType = 'bold' | 'underline' | 'code' | 'italic'
export type NodeType = BLOCKS | INLINES | 'text' | 'embedded-asset-block'
}