diff --git a/src/server/mod.ts b/src/server/mod.ts index fb3e15a..a21751c 100644 --- a/src/server/mod.ts +++ b/src/server/mod.ts @@ -1,5 +1,4 @@ import { Services } from "../acts/mod.ts"; -import { serve } from "../deps.ts"; import { TSchemas } from "../models/mod.ts"; import { generateSchemTypes } from "../types/mod.ts"; import { lesanFns } from "../utils/mod.ts"; @@ -95,8 +94,7 @@ ${ : "" }\n`, ); - await serve(handler, { port }); - // playground && runPlayground(); + Deno.serve({ port }, handler); }; return runServer; }; diff --git a/src/server/serveStatic.ts b/src/server/serveStatic.ts index f3fb3f9..6feb7cb 100644 --- a/src/server/serveStatic.ts +++ b/src/server/serveStatic.ts @@ -55,6 +55,6 @@ export const serveStatic = async ( ) => { const url = new URL(req.url); return playground && url.pathname === "/playground" - ? await runPlayground(url) + ? runPlayground(url) : await checkStaticPath(req, url, staticPath, schemasObj, actsObj); }; diff --git a/src/types/mod.ts b/src/types/mod.ts index cc4e631..74938b1 100644 --- a/src/types/mod.ts +++ b/src/types/mod.ts @@ -74,7 +74,7 @@ export const generateSchemTypes = async ( `; str = str + ` -type DeepPartial = { +export type DeepPartial = { [P in keyof T]?: T[P] extends object ? DeepPartial : T[P]; };