Skip to content

Commit

Permalink
fix: use Rich Text field type for Rich Text and Title field values (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore authored Jul 26, 2022
1 parent c0fdbb2 commit c13751c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@ type CustomTypeModelFieldForGroupValue<
? prismicT.BooleanField
: T extends prismicT.CustomTypeModelColorField
? prismicT.ColorField<State>
: T extends prismicT.CustomTypeModelTitleField
? prismicT.TitleField<State>
: T extends prismicT.CustomTypeModelRichTextField
? prismicT.RichTextField<State>
: T extends prismicT.CustomTypeModelTitleField
? prismicT.TitleField<State>
: T extends prismicT.CustomTypeModelImageField<infer TThumbnailNames>
? prismicT.ImageField<TThumbnailNames, State>
: T extends prismicT.CustomTypeModelLinkField
Expand Down

0 comments on commit c13751c

Please sign in to comment.