fix: signature of cds.tx#544
Conversation
SummaryThe following content is AI-generated and provides a summary of the pull request: Fix Signature of
|
There was a problem hiding this comment.
The PR correctly improves the type signatures of cds.tx overloads to propagate the callback's return type instead of the previous opaque Promise<unknown>/Promise<any>. The main issue identified is that both the QueryAPI.tx and the top-level cds.tx signatures will produce a nested Promise<Promise<R>> when async callbacks are used — using Promise<Awaited<T>> instead of Promise<T> would fix this for both sync and async callers.
PR Bot Information
Version: 1.20.33
- Event Trigger:
pull_request.opened - LLM:
anthropic--claude-4.6-sonnet - File Content Strategy: Full file content
- Correlation ID:
1d12eac5-034a-48ba-8888-e8e5cebd4d76
Fixes internal issue 19620
Report confirmed in REPL: