Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

all: add lodash types #763

Merged
merged 1 commit into from
Dec 17, 2024
Merged

all: add lodash types #763

merged 1 commit into from
Dec 17, 2024

Conversation

emersion
Copy link
Member

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';

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]>
@emersion emersion requested a review from a team as a code owner December 16, 2024 10:11
@emersion emersion added this pull request to the merge queue Dec 17, 2024
Merged via the queue into dev with commit b13f117 Dec 17, 2024
6 checks passed
@emersion emersion deleted the emr/lodash-types branch December 17, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants