feat: 前端迁移至 TypeScript,集成 Biome 格式化与代码检查

- app.js → app.ts:添加完整类型标注、接口定义
- audio-processor.js → audio-processor.ts:AudioWorklet 类型化
- vite.config.js → vite.config.ts
- 添加 tsconfig.json、vite-env.d.ts
- 集成 Biome 默认配置(lint + format),通过全部检查
- package.json 添加 check/typecheck 脚本
- index.html 修复无障碍问题(button type、SVG title)
This commit is contained in:
2026-03-01 05:40:06 +08:00
parent b22b27db75
commit d0be096165
13 changed files with 776 additions and 598 deletions

1
web/vite-env.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
/// <reference types="vite/client" />