optimized module manager seeding, added type support for new api hooks and reduced amount of dist chunks

This commit is contained in:
dswbx
2024-12-18 18:22:01 +01:00
parent c4138ef823
commit 602235b372
41 changed files with 434 additions and 328 deletions

View File

@@ -5,10 +5,10 @@ import type { Static, TSchema } from "core/utils";
import type { Connection, EntityManager } from "data";
import type { Hono } from "hono";
export type ModuleBuildContext = {
export type ModuleBuildContext<DB = any> = {
connection: Connection;
server: Hono<any>;
em: EntityManager<any>;
em: EntityManager<DB>;
emgr: EventManager<any>;
guard: Guard;
};