feat: added controller request handler types

This commit is contained in:
Ritesh Ghosh
2023-08-07 14:54:22 +05:30
parent e1b37a5b5e
commit 10e46b1002
5 changed files with 37 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
export type AnimeAboutInfoQueryParams = {
id?: string;
};
+7
View File
@@ -0,0 +1,7 @@
export type CategoryAnimePathParams = {
category?: string;
};
export type CategoryAnimeQueryParams = {
page?: string;
};
+7
View File
@@ -0,0 +1,7 @@
export type GenreAnimePathParams = {
name?: string;
};
export type GenreAnimeQueryParams = {
page?: string;
};
+4
View File
@@ -0,0 +1,4 @@
export type AnimeSearchQueryParams = {
q?: string;
page?: string;
};
+16
View File
@@ -0,0 +1,16 @@
import { AnimeSearchQueryParams } from "./animeSearch";
import { AnimeAboutInfoQueryParams } from "./animeAboutInfo";
import { GenreAnimePathParams, GenreAnimeQueryParams } from "./animeGenre";
import {
CategoryAnimePathParams,
CategoryAnimeQueryParams,
} from "./animeCategory";
export {
GenreAnimePathParams,
GenreAnimeQueryParams,
AnimeSearchQueryParams,
CategoryAnimePathParams,
CategoryAnimeQueryParams,
AnimeAboutInfoQueryParams,
};