Deploy Beta run 929 failed npm run build:beta with TS2345: isImageFile took a File, but the composer file is a Blob.
The helper now accepts Blob. URL.createObjectURL already does. The as File casts are gone.
Jest stayed green on that run because it does not typecheck this call. tsc --noEmit is clean on this branch.
Test plan
npx tsc --noEmit in llm-fe
npm run build:beta (or the next Deploy Beta) compiles
Image attach still shows a thumbnail and sends
Document attach still shows the filename
## Summary
- Closes #130.
- [Deploy Beta run 929](https://git.aimloperations.com/ai_ml_operations/chat_web_app/actions/runs/929) failed `npm run build:beta` with `TS2345`: `isImageFile` took a `File`, but the composer file is a `Blob`.
- The helper now accepts `Blob`. `URL.createObjectURL` already does. The `as File` casts are gone.
- Jest stayed green on that run because it does not typecheck this call. `tsc --noEmit` is clean on this branch.
## Test plan
- [ ] `npx tsc --noEmit` in `llm-fe`
- [ ] `npm run build:beta` (or the next Deploy Beta) compiles
- [ ] Image attach still shows a thumbnail and sends
- [ ] Document attach still shows the filename
Beta deploy typechecks the composer file as Blob, so the File-only helper failed the production build after the vision merge. Closes#130.
Co-authored-by: Cursor <cursoragent@cursor.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
npm run build:betawithTS2345:isImageFiletook aFile, but the composer file is aBlob.Blob.URL.createObjectURLalready does. Theas Filecasts are gone.tsc --noEmitis clean on this branch.Test plan
npx tsc --noEmitinllm-fenpm run build:beta(or the next Deploy Beta) compiles