Skip to content

Commit

Permalink
chore: improve rich text types
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Jan 10, 2024
1 parent 6aa6642 commit 52df3fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby-source-contentful/src/rich-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function renderRichText(
json,
links,
}: {
json: unknown
json: Document
links?: unknown
},
makeOptions?: MakeOptions | Options
Expand All @@ -52,7 +52,7 @@ export function renderRichText(
? makeOptions(generateLinkMaps(links as IContentfulRichTextLinks))
: makeOptions

return documentToReactComponents(json as Document, options)
return documentToReactComponents(json, options)
}

/**
Expand Down

0 comments on commit 52df3fa

Please sign in to comment.