Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(typecheck): also replace longer type defaults #541

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
juleswritescode merged 21 commits into main from feat/longer-type-replacements
Oct 3, 2025

Conversation

Copy link
Collaborator

@juleswritescode juleswritescode commented Sep 27, 2025
edited
Loading

Before, we would only show type errors if the length of the default-type-value was <= than the length of the param-name it belonged to.

Now we have an API that tracks positions in text replacements even if they grow the original text, so we can show such errors:

Screenshot 2025年09月27日 at 14 26 07

psteinroe reacted with rocket emoji
Comment on lines -335 to +322
// all values of the enums are longer than `NULL`, so we use `NULL` instead
"select 0 + 0 + 0 + 0 + 0 + NULL "
"select 0 + 0 + 0 + 0 + 0 + 'critical'"
Copy link
Collaborator Author

@juleswritescode juleswritescode Sep 27, 2025

Choose a reason for hiding this comment

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

not sure if the change from NULL to 'critical' is desired?

Copy link
Collaborator

@psteinroe psteinroe Sep 29, 2025

Choose a reason for hiding this comment

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

yes, makes sense after your change

Copy link
Collaborator

@psteinroe psteinroe left a comment

Choose a reason for hiding this comment

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

Beautiful!

Comment on lines -335 to +322
// all values of the enums are longer than `NULL`, so we use `NULL` instead
"select 0 + 0 + 0 + 0 + 0 + NULL "
"select 0 + 0 + 0 + 0 + 0 + 'critical'"
Copy link
Collaborator

@psteinroe psteinroe Sep 29, 2025

Choose a reason for hiding this comment

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

yes, makes sense after your change

@juleswritescode juleswritescode merged commit fcd4720 into main Oct 3, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@psteinroe psteinroe Awaiting requested review from psteinroe

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /