feat: enhance layout of search
This commit is contained in:
14
lib/types.ts
14
lib/types.ts
@@ -1,3 +1,6 @@
|
||||
import { SearchResponse } from "https://raw.githubusercontent.com/bradenmacdonald/typesense-deno/main/src/Typesense/Documents.ts";
|
||||
import { resources } from "@lib/resources.ts";
|
||||
|
||||
export interface TMDBMovie {
|
||||
adult: boolean;
|
||||
backdrop_path: string;
|
||||
@@ -23,3 +26,14 @@ export interface GiteaOauthUser {
|
||||
picture: string;
|
||||
groups: any;
|
||||
}
|
||||
|
||||
export type SearchResult = SearchResponse<{
|
||||
id:string;
|
||||
name: string;
|
||||
type: keyof typeof resources;
|
||||
date?: string;
|
||||
rating: number;
|
||||
tags: string[];
|
||||
description?: string;
|
||||
image?: string;
|
||||
}>;
|
||||
|
||||
Reference in New Issue
Block a user