From 40649a95070bf82f4e420a5e9f2f77e25b4f6a7e Mon Sep 17 00:00:00 2001 From: valere Date: Thu, 10 Oct 2024 17:26:14 +0200 Subject: [PATCH] CLEAN: drop unused types --- nuxt.config.ts | 2 +- server/api/search/[termspage].ts | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index c0c9b42..19496a3 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -28,7 +28,7 @@ export default defineNuxtConfig({ } }, typescript: { - typeCheck: true + strict: true }, compatibilityDate: '2024-10-06', }) diff --git a/server/api/search/[termspage].ts b/server/api/search/[termspage].ts index 54315cd..25bd2d4 100644 --- a/server/api/search/[termspage].ts +++ b/server/api/search/[termspage].ts @@ -1,14 +1,3 @@ -interface Film { - title: string, - seed: number, - size: string, - age: string, - magnet: string, - provider: string, -} - -let films: Film[] = [] - export default eventHandler(async (req) => { const [terms, page] = req.context.params?.termspage.split('-') || '' const url = `https://api.themoviedb.org/3/search/movie?query=${terms}&page=${page}&include_adult=false&language=en-US&page=1`