Explorar o código

♻️ refactor(test): 移除不必要的类型断言

- 删除app变量的any类型强制转换,利用TypeScript的类型推断能力
- 提升代码类型安全性,避免潜在的类型相关错误
yourname hai 2 meses
pai
achega
885fce41ec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/server/__test_utils__/test-server.ts

+ 1 - 1
src/server/__test_utils__/test-server.ts

@@ -15,7 +15,7 @@ export function createTestServer(
   app: OpenAPIHono | Hono,
   options: TestServerOptions = {}
 ) {
-  const server = app as any;
+  const server = app;
 
   // 设置默认选项
   const {