chore: fix eslint and make nuxt typecheck happpy
All checks were successful
ci / ci (22, ubuntu-latest) (push) Successful in 9m44s
Build and Push Docker Image / build (push) Successful in 1m29s

This commit is contained in:
2026-03-25 21:42:20 +01:00
parent 8f4be48fd1
commit 90a81f353d
3 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,7 @@
import { z } from "zod"; import { z } from "zod";
import type { InternalApi } from "nitropack/types";
export type Link = InternalApi["/api/links"]["get"][number];
const apiErrorSchema = z.object({ const apiErrorSchema = z.object({
data: z.object({ data: z.object({

View File

@@ -15,7 +15,7 @@ export default defineEventHandler(async (event) => {
const path = getRequestURL(event).pathname; const path = getRequestURL(event).pathname;
let link = await db.query.links.findFirst({ const link = await db.query.links.findFirst({
where: eq(tables.links.path, path), where: eq(tables.links.path, path),
}); });

View File

@@ -1,3 +0,0 @@
import type { InternalApi } from "nitropack/types";
export type Link = InternalApi["/api/links"]["get"][number];