1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add shared ItemStatus and ItemDtoQueryResult Type

This commit is contained in:
grafixeyehero 2024-08-21 03:27:03 +03:00
parent 656799cce7
commit 5fbc417e3b
24 changed files with 219 additions and 183 deletions

View file

@ -4,6 +4,7 @@ import { queryOptions, useQuery } from '@tanstack/react-query';
import type { AxiosRequestConfig } from 'axios';
import { useApi } from './useApi';
import type { ItemDto } from 'types/base/models/item-dto';
const fetchItem = async (
api?: Api,
@ -16,7 +17,7 @@ const fetchItem = async (
const response = await getUserLibraryApi(api)
.getItem({ userId, itemId }, options);
return response.data;
return response.data as ItemDto;
};
export const getItemQuery = (