Specify type of custom scalars

This commit is contained in:
schroda
2024-03-28 17:30:34 +01:00
parent 7990ffda71
commit 511b1f7c5e
6 changed files with 52 additions and 55 deletions

View File

@@ -79,7 +79,12 @@ export interface MangaCardProps {
mode?: MangaCardMode;
}
const getMangaLinkTo = (mode: MangaCardMode, mangaId: number, sourceId: string, mangaTitle: string): string => {
const getMangaLinkTo = (
mode: MangaCardMode,
mangaId: number,
sourceId: string | undefined,
mangaTitle: string,
): string => {
switch (mode) {
case 'default':
return `/manga/${mangaId}/`;