contentful / live-preview

Preview SDK for both the field tagging connection + live content updates
https://www.contentful.com/developers/docs/tutorials/general/live-preview/
MIT License
64 stars 14 forks source link

fix: inspector mode types [ZEND-5004] #732

Closed YvesRijckaert closed 5 months ago

YvesRijckaert commented 5 months ago

When using "strictNullChecks": false in tsconfig.json using a project with the live preview SDK and inspector mode, you would get this error:

Object literal may only specify known properties, and 'fieldId' does not exist in type '({ entryId: string; } | { assetId: string; }) & Pick<LivePreviewProps, "locale" | "space" | "environment">'.

I simplified the GetInspectorModeProps type which fixes this issue