fix(types): replace @returns any with specific type for withDefaults in utils.js#2364
fix(types): replace @returns any with specific type for withDefaults in utils.js#2364jonathanKingston wants to merge 11 commits intomainfrom
Conversation
…in utils.js The withDefaults function already casts all return paths to D & C (intersection of the defaults and config template types). Update the JSDoc @returns annotation to match, replacing the loose any. https://claude.ai/code/session_01QaZ2NFE7y5u8YdZhjoc79m
[Beta] Generated file diffTime updated: Wed, 04 Mar 2026 14:11:24 GMT |
Dismissing stale approval — new commits pushed, awaiting Cursor re-review.
Dismissing stale approval — new commits pushed, awaiting Cursor re-review.
Dismissing stale approval — new commits pushed, awaiting Cursor re-review.
Dismissing stale approval — new commits pushed, awaiting Cursor re-review.
Dismissing stale approval — new commits pushed, awaiting Cursor re-review.
Dismissing stale approval — new commits pushed, awaiting Cursor re-review.
Dismissing stale approval — new commits pushed, awaiting Cursor re-review.
Dismissing stale approval — new commits pushed, awaiting Cursor re-review.
Dismissing stale approval — new commits pushed, awaiting Cursor re-review.
Dismissing stale approval — new commits pushed, awaiting Cursor re-review.
Asana Task/Github Issue:
Description
Testing Steps
Checklist
Please tick all that apply:
The withDefaults function already casts all return paths to D & C
(intersection of the defaults and config template types). Update the
JSDoc @returns annotation to match, replacing the loose any.
https://claude.ai/code/session_01QaZ2NFE7y5u8YdZhjoc79m
Note
Low Risk
Type-only change that updates
withDefaultsJSDoc to returnD & Cinstead ofany, with no runtime behavior modifications.Overview
Updates
withDefaultsininjected/src/utils.jsto annotate its JSDoc return type asD & C(intersection ofdefaultsandconfig) instead ofany, aligning docs/types with the existing casts and improving TypeScript inference without changing runtime behavior.Written by Cursor Bugbot for commit c9bf50c. This will update automatically on new commits. Configure here.