type
RichTextBlockRenderers
Checked renderer dispatch retains the selected variant's exact payload.
Full signature
type RichTextBlockRenderers<Payload extends { blockType: string }, Result> = {
[Slug in Payload["blockType"]]: (block: Extract<Payload, { blockType: Slug }>) => Result;
}