mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): 🔥 Remove old @versia/client version
This commit is contained in:
parent
54e282b03c
commit
8d1af1b0cd
121 changed files with 649 additions and 756 deletions
|
|
@ -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)");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue