Skip to content

fix(cli): add type annotations to fix TS18046 unknown type errors#264

Merged
jlia0 merged 1 commit intomainfrom
jlia0/fix-ts-unknown-types
Mar 26, 2026
Merged

fix(cli): add type annotations to fix TS18046 unknown type errors#264
jlia0 merged 1 commit intomainfrom
jlia0/fix-ts-unknown-types

Conversation

@jlia0
Copy link
Copy Markdown
Collaborator

@jlia0 jlia0 commented Mar 26, 2026

Description

Fix TypeScript build errors caused by res.json() returning unknown type in strict mode. Add explicit : any type annotations to untyped .json() responses in the CLI package.

Changes

  • Add : any type annotation to data variable in packages/cli/src/channel.ts
  • Add : any type annotation to q variable in packages/cli/src/daemon.ts

Testing

  • Verified tsc --build no longer reports TS18046 errors for these files
  • Docker build passes the npm run build step

Checklist

  • PR title follows conventional commit format (type(scope): description)
  • I have tested these changes locally
  • My changes don't introduce new warnings or errors
  • I have updated documentation if needed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jlia0 jlia0 merged commit 8f9f2b9 into main Mar 26, 2026
@jlia0 jlia0 deleted the jlia0/fix-ts-unknown-types branch March 28, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant