Use type from API

This commit is contained in:
Dmitry Lyzo 2022-02-19 00:22:13 +03:00
parent c14daafffb
commit 8338bb550a

View File

@ -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>;
}