refactor(federation): ♻️ Move around code to get better TypeScript output

This commit is contained in:
Jesse Wierzbinski 2024-07-23 00:02:39 +02:00
parent 283e000498
commit 115bfc7f0d
No known key found for this signature in database
18 changed files with 54 additions and 47 deletions

View file

@ -1,3 +1,3 @@
import pkg from "../package.json" with { type: "json" };
import pkg from "@/federation/package.json" with { type: "json" };
export const DEFAULT_UA = `LysandFederation/${pkg.version} (+${pkg.homepage})`;

View file

@ -1,8 +1,8 @@
import type { SignatureConstructor } from "@/federation/cryptography";
import { DEFAULT_UA } from "@/federation/requester/constants";
import type { User } from "@/federation/schemas";
import { WebFingerSchema } from "@/federation/schemas/webfinger";
import { fromZodError } from "zod-validation-error";
import type { SignatureConstructor } from "../cryptography";
import type { User } from "../schemas";
import { WebFingerSchema } from "../schemas/webfinger";
import { DEFAULT_UA } from "./constants";
type HttpVerb = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";