mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-21 00:21:30 +00:00
fix(js): add missing @returns JSDoc to consumer-before-provider fixture
The js-consumer-before-provider fixture was missing a JSDoc @returns annotation on getUser(), preventing the scope-based resolution pipeline from propagating the return type and resolving u.save() to User#save. Mirrors the same pattern already applied to js-cross-file/src/models.js, and matches how the TypeScript equivalent uses an explicit `: User` return type annotation. Fixes the CI test failure introduced when JavaScript was added to MIGRATED_LANGUAGES in the JS scope-resolution migration (PR #1640). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
23d36c726d
commit
b6260db5ee
1 changed files with 1 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ export class User {
|
|||
save() {}
|
||||
}
|
||||
|
||||
/** @returns {User} */
|
||||
export function getUser() {
|
||||
return new User();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue