Hello, i'm currently trying to use the vanilla-jsoneditor package on a react typescript project and faced this small problem.
I've used the base react example as shown on the README of this repo to start trying some stuff in the library, I added all corresponding types and this is my end result
Hello, i'm currently trying to use the vanilla-jsoneditor package on a react typescript project and faced this small problem.
I've used the base react example as shown on the README of this repo to start trying some stuff in the library, I added all corresponding types and this is my end result
however, whenever I try to use this editor on another component, the property
onRenderContextMenu
seems to be missing on the type definitions:for now, if anyone is having this same issue, this is how I managed to fix it:
and then use
JSONEditorProps
as the type for the properties in your component.