背景
Deepractice monorepo 改为 source-first 模式后(开源包 main/exports 指向 src 而非 dist),Next.js strict typecheck 编译开源包源码,暴露了多处类型问题。
目前临时处理
- monogent/www 加了
typescript.ignoreBuildErrors: true 跳过
image.ts 用了 as ImageRecord 断言
AgentHandle.send 补了返回类型
需要修复
presentations.ts:32 — Presentation 接口缺少 onUpdate
- handler params 断言 — 都是
as { ... } 手动断言,应该用泛型约束
image.ts updatedRecord — spread 后 optional/required 字段类型不兼容
预期
去掉 ignoreBuildErrors: true 后 bun turbo build strict 模式零错误。
背景
Deepractice monorepo 改为 source-first 模式后(开源包 main/exports 指向 src 而非 dist),Next.js strict typecheck 编译开源包源码,暴露了多处类型问题。
目前临时处理
typescript.ignoreBuildErrors: true跳过image.ts用了as ImageRecord断言AgentHandle.send补了返回类型需要修复
presentations.ts:32—Presentation接口缺少onUpdateas { ... }手动断言,应该用泛型约束image.tsupdatedRecord — spread 后 optional/required 字段类型不兼容预期
去掉
ignoreBuildErrors: true后bun turbo buildstrict 模式零错误。