I imported according to example
import { JSONEditor, JSONEView } from 'ra-input-json';
Types script throw error that there is no types and suggest to install via
npm install @types/ra-input-json but there was no types.
So I tried to create my own:
declare module "ra-input-json" {
import { JSONEditor, JSONEView } from 'ra-input-json';
export default () => {
return {
JSONEditor,
JSONEView,
}
}
}
TS stop showing errors but on start of app it throw error:Error: withRef is removed. To access the wrapped instance, use a ref on the connected component
If I remove my declaration app compile and work. Please advise how can I use your module with TS.
I imported according to example
import { JSONEditor, JSONEView } from 'ra-input-json';Types script throw error that there is no types and suggest to install via
npm install @types/ra-input-jsonbut there was no types.So I tried to create my own:
TS stop showing errors but on start of app it throw error:
Error: withRef is removed. To access the wrapped instance, use a ref on the connected componentIf I remove my declaration app compile and work. Please advise how can I use your module with TS.