Skip to content

Replace NodeJS.Timeout usage in a browser hook #243

Description

@Aditya8369

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.

Metadata

Metadata

Assignees

Labels

ECSoC26Elite Coders Summer of Code 2026

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions