Description: useCipherWorker.ts uses NodeJS.Timeout, but this is a client-side hook (Next.js use client). In browser builds it’s typically number (from setTimeout). This can cause TS type friction and portability issues.
Files: lib/hooks/useCipherWorker.ts
Proposed enhancement: Change timeout type to ReturnType and remove Node-specific typings usage.
Description: useCipherWorker.ts uses NodeJS.Timeout, but this is a client-side hook (Next.js use client). In browser builds it’s typically number (from setTimeout). This can cause TS type friction and portability issues.
Files: lib/hooks/useCipherWorker.ts
Proposed enhancement: Change timeout type to ReturnType and remove Node-specific typings usage.