mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: 🚚 Move more utilities into packages
This commit is contained in:
parent
5cae547f8d
commit
3798e170d0
140 changed files with 913 additions and 735 deletions
|
|
@ -1,13 +1,19 @@
|
|||
import type { Application, Token, User } from "@versia/kit/db";
|
||||
import type * as VersiaEntities from "@versia/sdk/entities";
|
||||
import type { ConfigSchema } from "@versia-server/config/schema";
|
||||
import type { SocketAddress } from "bun";
|
||||
import type { Hono } from "hono";
|
||||
import type { RouterRoute } from "hono/types";
|
||||
import type { z } from "zod";
|
||||
import type { AuthData } from "~/classes/functions/user";
|
||||
|
||||
export type HttpVerb = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
|
||||
|
||||
export interface AuthData {
|
||||
user: User | null;
|
||||
token: Token | null;
|
||||
application: Application | null;
|
||||
}
|
||||
|
||||
export type HonoEnv = {
|
||||
Variables: {
|
||||
config: z.infer<typeof ConfigSchema>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue