From 05ec4d43a9e6c103d10b8c31abe30570b12ac9df Mon Sep 17 00:00:00 2001 From: Arnei Date: Fri, 9 Feb 2024 15:08:07 +0100 Subject: [PATCH] Install type definitions for some packages Installs type definitions for 'uuid' and 'lodash'. --- app/package-lock.json | 26 +++++++++++++++++++ app/package.json | 2 ++ .../DetailsExtendedMetadataTab.tsx | 1 - .../ModalTabsAndPages/DetailsMetadataTab.tsx | 1 - .../EventDetailsSchedulingTab.tsx | 1 - .../SeriesDetailsThemeTab.tsx | 1 - .../partials/wizards/RenderWorkflowConfig.tsx | 1 - app/src/thunks/seriesDetailsThunks.ts | 1 - 8 files changed, 28 insertions(+), 6 deletions(-) diff --git a/app/package-lock.json b/app/package-lock.json index a5f1c18e61..96ad249ae4 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -56,6 +56,8 @@ "@babel/plugin-syntax-optional-chaining": "^7.8.3", "@babel/preset-env": "^7.23.8", "@babel/preset-react": "^7.23.3", + "@types/lodash": "^4.14.202", + "@types/uuid": "^9.0.8", "customize-cra": "^1.0.0", "prop-types": "^15.8.1", "react-app-rewired": "^2.2.1", @@ -5333,6 +5335,12 @@ "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" }, + "node_modules/@types/lodash": { + "version": "4.14.202", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz", + "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", + "dev": true + }, "node_modules/@types/mime": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", @@ -5517,6 +5525,12 @@ "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.3.tgz", "integrity": "sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==" }, + "node_modules/@types/uuid": { + "version": "9.0.8", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", + "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", + "dev": true + }, "node_modules/@types/ws": { "version": "8.5.4", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", @@ -27566,6 +27580,12 @@ "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==" }, + "@types/lodash": { + "version": "4.14.202", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.202.tgz", + "integrity": "sha512-OvlIYQK9tNneDlS0VN54LLd5uiPCBOp7gS5Z0f1mjoJYBrtStzgmJBxONW3U6OZqdtNzZPmn9BS/7WI7BFFcFQ==", + "dev": true + }, "@types/mime": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.2.tgz", @@ -27752,6 +27772,12 @@ "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.3.tgz", "integrity": "sha512-NfQ4gyz38SL8sDNrSixxU2Os1a5xcdFxipAFxYEuLUlvU2uDwS4NUpsImcf1//SlWItCVMMLiylsxbmNMToV/g==" }, + "@types/uuid": { + "version": "9.0.8", + "resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.8.tgz", + "integrity": "sha512-jg+97EGIcY9AGHJJRaaPVgetKDsrTgbRjQ5Msgjh/DQKEFl0DtyRr/VCOyD1T2R1MNeWPK/u7JoGhlDZnKBAfA==", + "dev": true + }, "@types/ws": { "version": "8.5.4", "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.4.tgz", diff --git a/app/package.json b/app/package.json index 2c0fe8e938..9bc9112c55 100644 --- a/app/package.json +++ b/app/package.json @@ -73,6 +73,8 @@ "@babel/plugin-syntax-optional-chaining": "^7.8.3", "@babel/preset-env": "^7.23.8", "@babel/preset-react": "^7.23.3", + "@types/lodash": "^4.14.202", + "@types/uuid": "^9.0.8", "customize-cra": "^1.0.0", "prop-types": "^15.8.1", "react-app-rewired": "^2.2.1", diff --git a/app/src/components/events/partials/ModalTabsAndPages/DetailsExtendedMetadataTab.tsx b/app/src/components/events/partials/ModalTabsAndPages/DetailsExtendedMetadataTab.tsx index 6c80efb86f..89bac0daa7 100644 --- a/app/src/components/events/partials/ModalTabsAndPages/DetailsExtendedMetadataTab.tsx +++ b/app/src/components/events/partials/ModalTabsAndPages/DetailsExtendedMetadataTab.tsx @@ -2,7 +2,6 @@ import React from "react"; import { useTranslation } from "react-i18next"; import { Field, Formik } from "formik"; import cn from "classnames"; -// @ts-expect-error TS(7016): Could not find a declaration file for module 'loda... Remove this comment to see the full error message import _ from "lodash"; import Notifications from "../../../shared/Notifications"; import RenderMultiField from "../../../shared/wizard/RenderMultiField"; diff --git a/app/src/components/events/partials/ModalTabsAndPages/DetailsMetadataTab.tsx b/app/src/components/events/partials/ModalTabsAndPages/DetailsMetadataTab.tsx index cb41c5e5b5..34c3bdcb61 100644 --- a/app/src/components/events/partials/ModalTabsAndPages/DetailsMetadataTab.tsx +++ b/app/src/components/events/partials/ModalTabsAndPages/DetailsMetadataTab.tsx @@ -2,7 +2,6 @@ import React from "react"; import { useTranslation } from "react-i18next"; import { Field, Formik } from "formik"; import cn from "classnames"; -// @ts-expect-error TS(7016): Could not find a declaration file for module 'loda... Remove this comment to see the full error message import _ from "lodash"; import Notifications from "../../../shared/Notifications"; import RenderMultiField from "../../../shared/wizard/RenderMultiField"; diff --git a/app/src/components/events/partials/ModalTabsAndPages/EventDetailsSchedulingTab.tsx b/app/src/components/events/partials/ModalTabsAndPages/EventDetailsSchedulingTab.tsx index 01a7bb12cd..1686f22e0f 100644 --- a/app/src/components/events/partials/ModalTabsAndPages/EventDetailsSchedulingTab.tsx +++ b/app/src/components/events/partials/ModalTabsAndPages/EventDetailsSchedulingTab.tsx @@ -1,7 +1,6 @@ import React, { useEffect } from "react"; import { connect } from "react-redux"; import cn from "classnames"; -// @ts-expect-error TS(7016): Could not find a declaration file for module 'loda... Remove this comment to see the full error message import _ from "lodash"; import { DatePicker } from "@material-ui/pickers"; import { createTheme, ThemeProvider } from "@material-ui/core"; diff --git a/app/src/components/events/partials/ModalTabsAndPages/SeriesDetailsThemeTab.tsx b/app/src/components/events/partials/ModalTabsAndPages/SeriesDetailsThemeTab.tsx index 5e215494ec..36ce2c9bce 100644 --- a/app/src/components/events/partials/ModalTabsAndPages/SeriesDetailsThemeTab.tsx +++ b/app/src/components/events/partials/ModalTabsAndPages/SeriesDetailsThemeTab.tsx @@ -1,7 +1,6 @@ import React from "react"; import { useTranslation } from "react-i18next"; import { Formik } from "formik"; -// @ts-expect-error TS(7016): Could not find a declaration file for module 'loda... Remove this comment to see the full error message import _ from "lodash"; import cn from "classnames"; import { connect } from "react-redux"; diff --git a/app/src/components/events/partials/wizards/RenderWorkflowConfig.tsx b/app/src/components/events/partials/wizards/RenderWorkflowConfig.tsx index 64454b412c..02a8027511 100644 --- a/app/src/components/events/partials/wizards/RenderWorkflowConfig.tsx +++ b/app/src/components/events/partials/wizards/RenderWorkflowConfig.tsx @@ -1,6 +1,5 @@ import React from "react"; import { connect } from "react-redux"; -// @ts-expect-error TS(7016): Could not find a declaration file for module 'uuid... Remove this comment to see the full error message import { v4 as uuidv4 } from "uuid"; import { Field } from "formik"; import { diff --git a/app/src/thunks/seriesDetailsThunks.ts b/app/src/thunks/seriesDetailsThunks.ts index 215a397db4..b1adeb76f2 100644 --- a/app/src/thunks/seriesDetailsThunks.ts +++ b/app/src/thunks/seriesDetailsThunks.ts @@ -1,5 +1,4 @@ import axios from "axios"; -// @ts-expect-error TS(7016): Could not find a declaration file for module 'loda... Remove this comment to see the full error message import _ from "lodash"; import { loadSeriesDetailsAclsSuccess,