I went into the source code of PortalableText
: , components
param accept an object that is of PortableTextComponents
type. PortableTextComponents
is declared here and it is Partial<PortableTextSvelteComponents>
. PortableTextSvelteComponents
doesn't seem to accept a field called image
.
It seems like you are trying to use a custom type, this may help: https://github.com/portabletext/svelte-portabletext?tab=readme-ov-file#customizing-rendering