Skip to content

Commit

Permalink
fix: typings
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Oct 25, 2023
1 parent 2809d91 commit 069b07c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/taxonomy/api/hooks/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const useTaxonomyDetailData = (taxonomyId) => (

/**
* @param {number} taxonomyId
* @param {number} options
* @param {import('../types.mjs').QueryOptions} options
* @returns {import('@tanstack/react-query').UseQueryResult<import('../types.mjs').TaxonomyData>}
*/
export const useTagListData = (taxonomyId, options) => {
Expand Down
7 changes: 1 addition & 6 deletions src/taxonomy/api/hooks/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,7 @@ export const useTaxonomyDetailDataResponse = (taxonomyId) => {
/**
* @param {number} taxonomyId
* @param {import("../types.mjs").QueryOptions} options
* @returns {
* Pick<
* import('@tanstack/react-query').UseQueryResult,
* "error" | "isError" | "isFetched" | "isLoading" | "isSuccess"
* >
* }
* @returns {Pick<import('@tanstack/react-query').UseQueryResult, "error" | "isError" | "isFetched" | "isLoading" | "isSuccess" >}

Check failure on line 66 in src/taxonomy/api/hooks/selectors.js

View workflow job for this annotation

GitHub Actions / tests

This line has a length of 130. Maximum allowed is 120
*/
export const useTagListDataStatus = (taxonomyId, options) => {
const {
Expand Down
4 changes: 2 additions & 2 deletions src/taxonomy/api/types.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// @ts-check

/**
/**
* @typedef {Object} TaxonomyData
* @property {number} id
* @property {string} name
Expand Down Expand Up @@ -42,5 +42,5 @@

/**
* @typedef {Object} QueryOptions
* @property {number} page_index
* @property {number} pageIndex
*/

0 comments on commit 069b07c

Please sign in to comment.