feat: add multi-search, adjust types to allow type narrowing
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
import { MovieWithMediaType, PersonWithMediaType, TVWithMediaType } from '.';
|
||||
|
||||
export interface Search<T> {
|
||||
page: number;
|
||||
results: T[];
|
||||
total_pages: number;
|
||||
total_results: number;
|
||||
}
|
||||
|
||||
export type MultiSearchResult =
|
||||
| MovieWithMediaType
|
||||
| TVWithMediaType
|
||||
| PersonWithMediaType;
|
||||
|
||||
Reference in New Issue
Block a user