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,5 @@
import { ContentFormatSchema } from "@/federation/schemas/content_format";
import { emojiRegex } from "@/federation/schemas/regex";
/**
* Custom emojis extension.
* @module federation/schemas/extensions/custom_emojis
@ -5,8 +7,6 @@
* @see https://lysand.org/extensions/custom-emojis
*/
import { z } from "zod";
import { ContentFormatSchema } from "../content_format";
import { emojiRegex } from "../regex";
/**
* @description Used to validate the properties the extension's custom field

View file

@ -1,3 +1,5 @@
import { ExtensionSchema } from "@/federation/schemas/base";
import { ContentFormatSchema } from "@/federation/schemas/content_format";
/**
* Polls extension
* @module federation/schemas/extensions/polls
@ -5,8 +7,6 @@
* @see https://lysand.org/extensions/polls
*/
import { z } from "zod";
import { ExtensionSchema } from "../base";
import { ContentFormatSchema } from "../content_format";
/**
* @description Poll extension entity

View file

@ -1,3 +1,4 @@
import { ExtensionSchema } from "@/federation/schemas/base";
/**
* Reactions extension
* @module federation/schemas/extensions/reactions
@ -5,7 +6,6 @@
* @see https://lysand.org/extensions/reactions
*/
import { z } from "zod";
import { ExtensionSchema } from "../base";
/**
* @description Reaction extension entity

View file

@ -5,8 +5,8 @@
* @see https://lysand.org/extensions/vanity
*/
import { ContentFormatSchema } from "@/federation/schemas/content_format";
import { z } from "zod";
import { ContentFormatSchema } from "../content_format";
/**
* @description Vanity extension entity