Skip to content

Some suggestions to the simplify branch#3939

Merged
DmitrySharabin merged 6 commits intosimplifyfrom
pr-suggestions
May 18, 2025
Merged

Some suggestions to the simplify branch#3939
DmitrySharabin merged 6 commits intosimplifyfrom
pr-suggestions

Conversation

@DmitrySharabin
Copy link
Member

  • A bit more types and type assertions
  • Fix some imports
  • Fix the build script
  • Prettier in the touched files

@DmitrySharabin DmitrySharabin requested a review from LeaVerou May 18, 2025 12:37
@github-actions
Copy link

github-actions bot commented May 18, 2025

No JS Changes

Generated by 🚫 dangerJS against 8443d7c

}

return ret;
return ret as Grammar | undefined | Function;
Copy link
Member Author

Choose a reason for hiding this comment

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

TS can't infer that ret can't be of type string in the end (even though we have a branch that checks that ret is a string and where we update its value, so it's no longer a string).

@DmitrySharabin DmitrySharabin merged commit 630b6d4 into simplify May 18, 2025
2 checks passed
@DmitrySharabin DmitrySharabin deleted the pr-suggestions branch May 18, 2025 18:27
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.

2 participants