Skip to content

Commit

Permalink
fix: add "Text" type to nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Oppenheim authored and kgajera committed Dec 27, 2023
1 parent 00694cf commit 640da0e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
OnInit,
SimpleChanges,
} from '@angular/core';
import { Block, Document, Inline } from '@contentful/rich-text-types';
import { Block, Document, Inline, Text } from '@contentful/rich-text-types';

import {
MarkRendererResolver,
Expand Down Expand Up @@ -38,7 +38,7 @@ export class NgxContentfulRichTextComponent implements OnInit, OnChanges {
@Input() document: Document;

/** Nodes to render */
@Input() nodes: Array<Block | Inline>;
@Input() nodes: Array<Block | Inline | Text>;

/** Custom renderers for block and inline nodes */
@Input() nodeRenderers: Record<string, NodeRendererResolver>;
Expand Down

0 comments on commit 640da0e

Please sign in to comment.