refactor(api): 🔥 Remove old @versia/client version

This commit is contained in:
Jesse Wierzbinski 2025-03-22 18:04:47 +01:00
parent 54e282b03c
commit 8d1af1b0cd
No known key found for this signature in database
121 changed files with 649 additions and 756 deletions

View file

@ -1,5 +1,6 @@
import { configureLoggers } from "@/loggers";
import type { Status as ApiStatus } from "@versia/client/types";
import type { z } from "@hono/zod-openapi";
import type { Status } from "@versia/client/schemas";
import { bench, run } from "mitata";
import { fakeRequest, getTestStatuses, getTestUsers } from "~/tests/utils";
@ -15,7 +16,7 @@ const testTimeline = async (): Promise<void> => {
},
});
const objects = (await response.json()) as ApiStatus[];
const objects = (await response.json()) as z.infer<typeof Status>[];
if (objects.length !== 20) {
throw new Error("Invalid response (not 20 objects)");