Skip to content

Commit

Permalink
refactor: Change lib v2 code to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuf-musleh committed Jun 23, 2024
1 parent 49b7142 commit 9694943
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,20 @@ import { useQuery } from '@tanstack/react-query';

import { getStudioHomeLibrariesV2 } from './api';


interface CustomParams {
type?: string,
page?: number,
pageSize?: number,
pagination?: boolean,
order?: string,
saerch?: string,
}

/**
* Builds the query to fetch list of V2 Libraries
*/
const useListStudioHomeV2Libraries = (customParams) => (
const useListStudioHomeV2Libraries = (customParams: CustomParams) => (
useQuery({
queryKey: ['listV2Libraries', customParams],
queryFn: () => getStudioHomeLibrariesV2(customParams),
Expand Down
File renamed without changes.

0 comments on commit 9694943

Please sign in to comment.