-
Notifications
You must be signed in to change notification settings - Fork 655
fix(1196): extend parameter matching with index fallback when name matching fails #1241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jakebailey
reviewed
Jun 19, 2025
...lines/reference/submoduleAccepted/conformance/paramTagNestedWithoutTopLevelObject.types.diff
Outdated
Show resolved
Hide resolved
jakebailey
reviewed
Jun 19, 2025
testdata/baselines/reference/submoduleAccepted/compiler/jsdocParamTagInvalid.types.diff
Outdated
Show resolved
Hide resolved
jakebailey
approved these changes
Jun 24, 2025
This PR needs a merge from main after other PRs were merged. |
sandersn
approved these changes
Jun 24, 2025
->opts5[0].what : { a: string; bad: { idea: string; oh: boolean;}; } | ||
->opts5[0] : { help: string; what: { a: string; bad: { idea: string; oh: boolean; };}; unnest: number; } | ||
->opts5 : { help: string; what: { a: string; bad: { idea: string; oh: boolean; };}; unnest: number; }[] | ||
->0 : 0 | ||
+>opts5[0].what : { a: string; bad: { idea: string; oh: boolean; }[]; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bad
being an array looks correct; I just can't figure out how Strada thought it wasn't
Since there's a merge needed, could you also delete the unused |
jakebailey
approved these changes
Jun 24, 2025
github-actions bot
added a commit
to zshannon/typescript-go
that referenced
this pull request
Jun 25, 2025
# 1.0.0 (2025-06-25) ### Bug Fixes * **1196:** extend parameter matching with index fallback when name matching fails ([microsoft#1241](https://github.com/zshannon/typescript-go/issues/1241)) ([8975084](8975084)) * **1250:** fix bigint literal type declaration emit ([microsoft#1258](https://github.com/zshannon/typescript-go/issues/1258)) ([6e03d62](6e03d62)) * **949:** fix unmatched closing tags in JSX with referenced identifiers ([microsoft#1056](https://github.com/zshannon/typescript-go/issues/1056)) ([671b5cb](671b5cb)) * avoid treating await in jsdoc as top-level await ([microsoft#877](https://github.com/zshannon/typescript-go/issues/877)) ([656029e](656029e)) * **docs:** Ensure function documentation appears on hover ([microsoft#739](https://github.com/zshannon/typescript-go/issues/739)) ([b2655e6](b2655e6)) ### Features * **911:** erasableSyntaxOnly not supported ([microsoft#1068](https://github.com/zshannon/typescript-go/issues/1068)) ([ddb1ebb](ddb1ebb)) ### Performance Improvements * use append instead of Concat in appendLookupLocations ([microsoft#632](https://github.com/zshannon/typescript-go/issues/632)) ([026e5f9](026e5f9))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #1196
Fixes #1225
ℹ️ This patch extends parameter matching by adding a fallback to index-based resolution when JSDoc parameter tag names do not match function parameter names, and also improves handling of nested array literals.
✅ Verification test - jsdocParamTagTypeLiteral