react-debounce-render icon indicating copy to clipboard operation
react-debounce-render copied to clipboard

Add lodash types to dependencies

Open CJxD opened this issue 3 years ago • 0 comments

Without listing the lodash types as a dependency, you get an error like this:

../../.yarn/__virtual__/react-debounce-render-virtual-213d9d5692/0/cache/react-debounce-render-npm-8.0.2-d6a1a3772f-a97119badb.zip/node_modules/react-debounce-render/dist/index.d.ts:2:34 - error TS2307: Cannot find module 'lodash' or its corresponding type declarations.

2 import { DebounceSettings } from 'lodash';

Type dependencies that will be needed by the end user should go in optionalDependencies rather than devDependencies.

CJxD avatar Aug 24 '22 14:08 CJxD