diff --git a/src/content-tags-drawer/data/api.js b/src/content-tags-drawer/data/api.js index e63b3d0842..f6f4f1761e 100644 --- a/src/content-tags-drawer/data/api.js +++ b/src/content-tags-drawer/data/api.js @@ -12,7 +12,7 @@ export const getContentDataApiUrl = (contentId) => new URL(`/xblock/outline/${co * @param {string} taxonomyId The id of the taxonomy to fetch tags for * @param {string} fullPathProvided Optional param that contains the full URL to fetch data * If provided, we use it instead of generating the URL. This is usually for fetching subTags - * @returns {Promise} + * @returns {Promise} */ export async function getTaxonomyTagsData(taxonomyId, fullPathProvided) { const { data } = await getAuthenticatedHttpClient().get( @@ -24,7 +24,7 @@ export async function getTaxonomyTagsData(taxonomyId, fullPathProvided) { /** * Get the tags that are applied to the content object * @param {string} contentId The id of the content object to fetch the applied tags for - * @returns {Promise} + * @returns {Promise} */ export async function getContentTaxonomyTagsData(contentId) { const { data } = await getAuthenticatedHttpClient().get(getContentTaxonomyTagsApiUrl(contentId)); @@ -34,7 +34,7 @@ export async function getContentTaxonomyTagsData(contentId) { /** * Fetch meta data (eg: display_name) about the content object (unit/compoenent) * @param {string} contentId The id of the content object (unit/component) - * @returns {Promise} + * @returns {Promise} */ export async function getContentData(contentId) { const { data } = await getAuthenticatedHttpClient().get(getContentDataApiUrl(contentId)); diff --git a/src/content-tags-drawer/data/apiHooks.jsx b/src/content-tags-drawer/data/apiHooks.jsx index d30c3db007..90ed6b4af6 100644 --- a/src/content-tags-drawer/data/apiHooks.jsx +++ b/src/content-tags-drawer/data/apiHooks.jsx @@ -7,7 +7,6 @@ import { getTaxonomyTagsData, getContentTaxonomyTagsData, getContentData } from * @param {string} taxonomyId The id of the taxonomy to fetch tags for * @param {string} fullPathProvided Optional param that contains the full URL to fetch data * If provided, we use it instead of generating the URL. This is usually for fetching subTags - * @returns {import('@tanstack/react-query').UseQueryResult} */ const useTaxonomyTagsData = (taxonomyId, fullPathProvided) => ( useQuery({ @@ -45,7 +44,6 @@ export const useIsTaxonomyTagsDataLoaded = (taxonomyId, fullPathProvided) => ( /** * Builds the query to get the taxonomy tags applied to the content object * @param {string} contentId The id of the content object to fetch the applied tags for - * @returns {import('@tanstack/react-query').UseQueryResult} */ const useContentTaxonomyTagsData = (contentId) => ( useQuery({ @@ -79,7 +77,6 @@ export const useIsContentTaxonomyTagsDataLoaded = (contentId) => ( /** * Builds the query to get meta data about the content object * @param {string} contentId The id of the content object (unit/component) - * @returns {import('@tanstack/react-query').UseQueryResult} */ const useContentData = (contentId) => ( useQuery({ diff --git a/src/taxonomy/data/api.js b/src/taxonomy/data/api.js index 6f7a3171a4..f7fdf447c5 100644 --- a/src/taxonomy/data/api.js +++ b/src/taxonomy/data/api.js @@ -23,7 +23,7 @@ export const getTaxonomyApiUrl = (pk) => new URL(`api/content_tagging/v1/taxonom /** * Get list of taxonomies. * @param {string} org Optioanl organization query param - * @returns {Promise} + * @returns {Promise} */ export async function getTaxonomyListData(org) { const { data } = await getAuthenticatedHttpClient().get(getTaxonomyListApiUrl(org)); diff --git a/src/taxonomy/data/apiHooks.jsx b/src/taxonomy/data/apiHooks.jsx index 21e522b0e9..827057ea38 100644 --- a/src/taxonomy/data/apiHooks.jsx +++ b/src/taxonomy/data/apiHooks.jsx @@ -17,7 +17,6 @@ import { getTaxonomyListData, deleteTaxonomy } from './api'; /** * Builds the query to get the taxonomy list * @param {string} org Optional organization query param - * @returns {import('@tanstack/react-query').UseQueryResult} */ const useTaxonomyListData = (org) => ( useQuery({