prismicio/prismic-next

Expose PrismicPreviewProps type

Closed this issue · 0 comments

Versions

  • package_name: v0.0.4
  • node: v14.18.3

Reproduction

Using next dynamic import, the following function return a component typed React.ComponentType<{}>:

const PrismicPreview = dynamic(
  () => import('@prismicio/next').then((res) => res.PrismicPreview),
  { ssr: false },
)

Steps to reproduce

N/A

What is expected?

We should be able to pass PrismicPreviewProps to the next dynamic function generic (which actually exists).

What is actually happening?

PrismicPreviewProps is currently not exposed.