fix: Resolve TypeScript type errors in codebase #49
Labels
No labels
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem#49
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Running
npm run typecheckreveals numerous TypeScript errors. The build works because Bun handles types at runtime, but strict type checking fails.Error Categories
1.
bun:sqlitemodule not found (~19 errors)TypeScript doesn't recognize Bun-specific modules.
Solution: Add Bun type definitions or create type stubs.
2. Logger Component type too restrictive (~50+ errors)
Strings like
"CURSOR","CHROMA_SYNC","QUEUE"are not in theComponenttype.Solution: Extend the
Componenttype union insrc/utils/logger.ts.3. React event target types (~30+ errors)
e.target.valueande.target.checkednot recognized on event targets.Solution: Use proper event typing:
ChangeEvent<HTMLInputElement>etc.4. Miscellaneous type issues
homedirimport in CursorHooksInstaller.tsHookResultmissingcontextpropertyImpact
Acceptance Criteria
npm run typecheckpasses with 0 errors