mirror of
https://github.com/versia-pub/api.git
synced 2026-03-13 12:19: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,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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue