Much like the LinkedItemsElement, I would like to propose to add a type parameter to RichTextElement as well. Since you can limit the content type of components in rich texts, making the RichTextElement type generic in cooperation with kontent-ai/model-generator-js would increase type safety.
Yeah, this is definitely something I would like to do (along with some further type improvements). Im pretty busy with other work currently, but hopefully I'll be able to look into this at some point.
Motivation
Much like the LinkedItemsElement, I would like to propose to add a type parameter to RichTextElement as well. Since you can limit the content type of components in rich texts, making the RichTextElement type generic in cooperation with kontent-ai/model-generator-js would increase type safety.
Proposed solution