mosch / react-avatar-editor

Small avatar & profile picture component. Resize and crop uploaded images using a intuitive user interface.
https://react-avatar-editor.netlify.app/
MIT License
2.35k stars 369 forks source link

Could not find a declaration file for module 'react-avatar-editor'. 'C:/.../node_modules/react-avatar-editor/dist/index.js' implicitly has an 'any' type. #410

Closed azaelvaldo closed 8 months ago

azaelvaldo commented 8 months ago

Any suggestions? my company eslint have a strong policies.

rexwangcc commented 8 months ago

Seems like a duplicate of https://github.com/mosch/react-avatar-editor/issues/393? Basically you can try either of the following:

# npm i @types/react-avatar-editor
yarn add @types/react-avatar-editor
mosch commented 8 months ago

Upgrade to the latest version. It comes with types.