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:
parent
656799cce7
commit
5fbc417e3b
24 changed files with 219 additions and 183 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue