changed tb imports

This commit is contained in:
dswbx
2025-04-10 10:40:12 +02:00
parent ad7926db4c
commit 3859b9ba00
60 changed files with 233 additions and 188 deletions
+2 -1
View File
@@ -6,7 +6,6 @@ import {
Default,
type Static,
StringEnum,
Type,
mark,
objectEach,
stripMark,
@@ -34,6 +33,8 @@ import { AppFlows } from "../flows/AppFlows";
import { AppMedia } from "../media/AppMedia";
import type { ServerEnv } from "./Controller";
import { Module, type ModuleBuildContext } from "./Module";
import * as tbbox from "@sinclair/typebox";
const { Type } = tbbox;
export type { ModuleBuildContext };
+3 -1
View File
@@ -1,7 +1,9 @@
import { Exception, isDebug } from "core";
import { type Static, StringEnum, Type } from "core/utils";
import { type Static, StringEnum } from "core/utils";
import { cors } from "hono/cors";
import { Module } from "modules/Module";
import * as tbbox from "@sinclair/typebox";
const { Type } = tbbox;
const serverMethods = ["GET", "POST", "PATCH", "PUT", "DELETE"];
+2 -1
View File
@@ -4,7 +4,6 @@ import type { App } from "App";
import { $console, tbValidator as tb } from "core";
import {
StringEnum,
Type,
TypeInvalidError,
datetimeStringLocal,
datetimeStringUTC,
@@ -14,6 +13,8 @@ import {
import { getRuntimeKey } from "core/utils";
import type { Context, Hono } from "hono";
import { Controller } from "modules/Controller";
import * as tbbox from "@sinclair/typebox";
const { Type } = tbbox;
import {
MODULE_NAMES,
+2 -1
View File
@@ -1,6 +1,7 @@
import { Type } from "core/utils";
import type { ModuleConfigs } from "modules/ModuleManager";
import type { OpenAPIV3 as OAS } from "openapi-types";
import * as tbbox from "@sinclair/typebox";
const { Type } = tbbox;
function prefixPaths(paths: OAS.PathsObject, prefix: string): OAS.PathsObject {
const result: OAS.PathsObject = {};