mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-12 23:36:55 +08:00
fix(web): resolve TypeScript type error in crypto.ts and add missing test dependencies (#647)
``` src/lib/crypto.ts(66,32): error TS2345: Argument of type 'Uint8Array<ArrayBuffer>' is not assignable to parameter of type 'ArrayBuffer'. ``` `arrayBufferToBase64` function expected `ArrayBuffer` but received `Uint8Array.buffer`. TypeScript strict type checking flagged the mismatch. 1. Update `arrayBufferToBase64` signature to accept `ArrayBuffer | Uint8Array` 2. Pass `result` directly instead of `result.buffer` (more accurate) 3. Add runtime type check with instanceof ``` error TS2307: Cannot find module 'vitest' error TS2307: Cannot find module '@testing-library/react' ``` Install missing devDependencies: - vitest - @testing-library/react - @testing-library/jest-dom ✅ Frontend builds successfully ✅ TypeScript compilation passes ✅ No type errors Related-To: Docker frontend build failures
This commit is contained in:
committed by
GitHub
parent
133570663f
commit
fd5aab01b1
5846
web/package-lock.json
generated
5846
web/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user