Skip to content

Commit

Permalink
all: add lodash types
Browse files Browse the repository at this point in the history
Fixes warnings such as the following:

    (!) [plugin typescript] src/components/TransformedDataMap.tsx (6:22): @rollup/plugin-typescript TS7016: Could not find a declaration file for module 'lodash'. '/home/simon/src/osrd-ui/node_modules/lodash/lodash.js' implicitly has an 'any' type.
      Try `npm i --save-dev @types/lodash` if it exists or add a new declaration (.d.ts) file containing `declare module 'lodash';`
    /home/simon/src/osrd-ui/ui-warped-map/src/components/TransformedDataMap.tsx:6:22

    6 import { omit } from 'lodash';

Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Dec 17, 2024
1 parent 41f5c41 commit b13f117
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@rollup/plugin-eslint": "^9.0.5",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.0",
"@types/lodash": "^4.17.13",
"@types/react": "^18.2.40",
"@types/react-dom": "^18.2.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
Expand Down

0 comments on commit b13f117

Please sign in to comment.