diff options
| author | Ritesh Ghosh <[email protected]> | 2024-03-25 18:59:00 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2024-03-25 18:59:00 +0530 |
| commit | 71f0905115e88a96f59aa4a52d1ce69a793ebe0c (patch) | |
| tree | 579cd88993d630686e9bd9b016c9dfceb9034a9f /src/types | |
| parent | 1c02c9cf4f9c364c57a2f30471e676b5a5e5b5ca (diff) | |
| download | aniwatch-api-71f0905115e88a96f59aa4a52d1ce69a793ebe0c.tar.xz aniwatch-api-71f0905115e88a96f59aa4a52d1ce69a793ebe0c.zip | |
feat(advancedSearch): add helper types
Diffstat (limited to 'src/types')
| -rw-r--r-- | src/types/controllers/animeSearch.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/types/controllers/animeSearch.ts b/src/types/controllers/animeSearch.ts index 20f4680..fccb243 100644 --- a/src/types/controllers/animeSearch.ts +++ b/src/types/controllers/animeSearch.ts @@ -1,4 +1,20 @@ export type AnimeSearchQueryParams = { q?: string; page?: string; + type?: string; + status?: string; + rated?: string; + score?: string; + season?: string; + language?: string; + start_date?: string; + end_date?: string; + sort?: string; + genres?: string; }; + +export type SearchFilters = Omit<AnimeSearchQueryParams, "q" | "page">; + +export type FilterKeys = Partial< + keyof Omit<SearchFilters, "start_date" | "end_date"> +>; |
