Skip to content

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Aug 12, 2025

Fixes #3065

Note that I on purpose have set the domain the same as the content range. Take this example:

const foo: () => number;

We already have a type scope with content range () => number. If we set that as the domain for number it would probably be surprising if you are inside the parameters in want to target the type.
@pokey Any thoughts on this?

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner August 12, 2025 14:49
Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems fine, tho I'm not sure the removal range makes sense. But doesn't hurt

@AndreasArvidsson AndreasArvidsson added this pull request to the merge queue Aug 12, 2025
Merged via the queue into main with commit 5d57ea4 Aug 12, 2025
15 checks passed
@AndreasArvidsson AndreasArvidsson deleted the typeReturn branch August 12, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

typescript: "type" scope doesn't support return type of function type

2 participants