mirror of
https://github.com/versia-pub/api.git
synced 2026-03-13 04:09:15 +01:00
refactor(federation): ♻️ Move around code to get better TypeScript output
This commit is contained in:
parent
283e000498
commit
115bfc7f0d
18 changed files with 54 additions and 47 deletions
|
|
@ -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})`;
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue