Skip to content

Jimmy/fix type check#1129

Merged
vaclisinc merged 4 commits into
mainfrom
jimmy/fix-type-check
Apr 7, 2026
Merged

Jimmy/fix type check#1129
vaclisinc merged 4 commits into
mainfrom
jimmy/fix-type-check

Conversation

@vaclisinc

@vaclisinc vaclisinc commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Problem Statement

Solve the below type-check error.

backend:type-check: src/modules/semantic-search/client.ts:45:22 - error TS2339: Property 'detail' does not exist on type '{}'.
backend:type-check: 
backend:type-check: 45       detail = body?.detail ?? body?.error;
backend:type-check:                         ~~
backend:type-check: 
backend:type-check: src/modules/semantic-search/client.ts:45:38 - error TS2339: Property 'error' does not exist on type '{}'.
backend:type-check: 
backend:type-check: 45       detail = body?.detail ?? body?.error;
backend:type-check:                                         ~
backend:type-check: 
backend:type-check: 
backend:type-check: Found 2 errors in the same file, starting at: src/modules/semantic-search/client.ts:45
backend:type-check: 
npm error Lifecycle script type-check failed with error:
npm error code 2
npm error path /Users/liaobofei/Desktop/berkeleytime/apps/backend
npm error workspace backend
npm error location /Users/liaobofei/Desktop/berkeleytime/apps/backend
npm error command failed
npm error command sh -c tsc --noEmit --incremental false

backend:type-check: ERROR: command finished with error: command (/Users/liaobofei/Desktop/berkeleytime/apps/backend) /opt/homebrew/bin/npm run type-check exited (2)
backend#type-check: command (/Users/liaobofei/Desktop/berkeleytime/apps/backend) /opt/homebrew/bin/npm run type-check exited (2)

 Tasks:    7 successful, 8 total
Cached:    0 cached, 8 total
  Time:    7.552s 
Failed:    backend#type-check

@bfliao bfliao left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as long as it works lol

@bfliao bfliao requested a review from PineND April 7, 2026 22:48
@vaclisinc vaclisinc merged commit 2ea65fc into main Apr 7, 2026
18 checks passed
@vaclisinc vaclisinc deleted the jimmy/fix-type-check branch April 7, 2026 22:54
@vaclisinc vaclisinc restored the jimmy/fix-type-check branch April 7, 2026 22:54
@vaclisinc vaclisinc deleted the jimmy/fix-type-check branch April 7, 2026 22:54
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.

2 participants