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:
ReidenXerx 2026-05-16 15:38:59 +03:00
parent 23d36c726d
commit b6260db5ee

View file

@ -2,6 +2,7 @@ export class User {
save() {}
}
/** @returns {User} */
export function getUser() {
return new User();
}