The embed accepts features.imageEditor.dock: 'left' | 'right' (documented in this repo's README), but @unlayer/types: 1.448.0 does not list dock (or corners) on that object. TypeScript rejects a valid option.
features.imageEditor today only has enabled and tools.
Example:
import { ImageEditor } from '@unlayer/react-image-editor'
<ImageEditor
image={src}
options={{
features: {
imageEditor: { dock: 'left' }, // TS error: 'dock' does not exist
},
}}
/>
Expected: dock?: 'left' | 'right' (and corners if that is also supported) on Features['imageEditor'] when it is an object.
The embed accepts
features.imageEditor.dock: 'left' | 'right'(documented in this repo's README), but@unlayer/types: 1.448.0does not listdock(orcorners) on that object. TypeScript rejects a valid option.features.imageEditortoday only hasenabledandtools.Example:
Expected:
dock?: 'left' | 'right'(andcornersif that is also supported) onFeatures['imageEditor']when it is an object.