mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
Use type from API
This commit is contained in:
parent
c14daafffb
commit
8338bb550a
@ -1,3 +1,4 @@
|
||||
import { BaseItemDto } from '@thornbill/jellyfin-sdk/dist/generated-client';
|
||||
import React, { FunctionComponent, useEffect, useRef } from 'react';
|
||||
|
||||
import cardBuilder from '../cardbuilder/cardBuilder';
|
||||
@ -17,7 +18,7 @@ const createScroller = ({ title = '' }) => ({
|
||||
|
||||
type SearchResultsRowProps = {
|
||||
title?: string;
|
||||
items?: Array<any>; // TODO: Should be Array<BaseItemDto> once we have a typed API client
|
||||
items?: BaseItemDto[];
|
||||
cardOptions?: Record<string, any>;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user