Skip to content

Conversation

Andarist
Copy link
Contributor

I was looking into isDeclarationWithExplicitTypeAnnotation to assess if it's not missing MethodSignature handling. I couldn't come up with a test case that would prove it is. I think that case is always handled by an early check for SymbolFlags.Method in getExplicitTypeOfSymbol (and that's the only caller of isDeclarationWithExplicitTypeAnnotation).

In the process, I found out that there was no test case for the isPropertySignature check in isDeclarationWithExplicitTypeAnnotation. So here it is (plus some extras) 😉

@typescript-bot
Copy link
Collaborator

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Aug 22, 2024
@gabritto gabritto merged commit e8e47dd into microsoft:main Aug 22, 2024
32 checks passed
@Andarist Andarist deleted the tests/assertions-with-property-declarations-and-signatures branch August 22, 2024 18:58
@sandersn sandersn removed this from PR Backlog Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants