diff options
Diffstat (limited to 'src/routes')
| -rw-r--r-- | src/routes/mangadex/manga/+server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/mangadex/manga/+server.ts b/src/routes/mangadex/manga/+server.ts index 8c25163f..5bfa1882 100644 --- a/src/routes/mangadex/manga/+server.ts +++ b/src/routes/mangadex/manga/+server.ts @@ -1,6 +1,6 @@ export const GET = async ({ url }) => { - const nullIfNullString = (s) => (s === 'null' ? null : s); - const get = async (title) => { + const nullIfNullString = (s: string | null) => (s == 'null' ? null : s); + const get = async (title: string) => { return await ( await fetch( `https://api.mangadex.org/manga?title=${encodeURIComponent( |