Enable verbatim module syntax + more API routes

This commit is contained in:
Jesse Wierzbinski 2023-11-22 18:10:37 -10:00
parent 991a2cba84
commit be9b2e3376
No known key found for this signature in database
84 changed files with 438 additions and 192 deletions

View file

@ -1,4 +1,5 @@
import { HookTypes, Server } from "./types";
import type { Server } from "./types";
import { HookTypes } from "./types";
const registerPlugin = (server: Server) => {
server.on(HookTypes.OnPostCreate, (req, newPost, author) => {

View file

@ -1,7 +1,7 @@
import EventEmitter from "eventemitter3";
import { StatusWithRelations } from "~database/entities/Status";
import { UserWithRelations } from "~database/entities/User";
import { LysandObjectType } from "~types/lysand/Object";
import type { StatusWithRelations } from "~database/entities/Status";
import type { UserWithRelations } from "~database/entities/User";
import type { LysandObjectType } from "~types/lysand/Object";
export enum HookTypes {
/**