update & fix typing, updated examples

This commit is contained in:
dswbx
2024-12-23 19:28:31 +01:00
parent 70e42a02d7
commit c1e92e503b
21 changed files with 126 additions and 139 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<DB = any> = {
export type ModuleBuildContext = {
connection: Connection;
server: Hono<any>;
em: EntityManager<DB>;
em: EntityManager;
emgr: EventManager<any>;
guard: Guard;
};