react-drop-n-crop icon indicating copy to clipboard operation
react-drop-n-crop copied to clipboard

Having issues when using with typescript.

Open kramsram opened this issue 6 years ago • 2 comments

Having issues when using with Typescript.

Could not find a declaration file for module '@synapsestudios/react-drop-n-crop'. '.../node_modules/@synapsestudios/react-drop-n-crop/lib/index.js' implicitly has an 'any' type. Try npm install @types/synapsestudios__react-drop-n-crop if it exists or add a new declaration (.d.ts) file containing declare module '@synapsestudios/react-drop-n-crop';

using the const = require form cuses problems when I render - with the message that render expects a string but got an object.

kramsram avatar Jan 30 '19 13:01 kramsram

We don't use Typescript but if you want to submit a PR, we're happy to review and consider it.

bobeagan avatar Jan 30 '19 17:01 bobeagan

😊 Will put together a .d.ts file one of these days ...

kramsram avatar Feb 13 '19 22:02 kramsram