Skip to content
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

build: Allow TS functions to be used before their definition #21263

Merged

Conversation

mvollmer
Copy link
Member

This is fine, TypeScript will check them correctly. And it is very useful for global functions, at least. And we allow functions to be used before their definitions in JavaScript files.

This is fine, TypeScript will check them correctly.  And it is very
useful for global functions, at least.  And we allow functions to be
used before their definitions in JavaScript files.
@mvollmer
Copy link
Member Author

This will help moving files from JavaScript to TypeScript. We wont have to move chunks of code around, or get stumped by how to remove existing mutual recursion.

Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

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

Sure! Please for any such (linter) changes, use no-test. This only ever runs in the GitHub unit-tests, not in our CI.

@mvollmer mvollmer merged commit 8d178e8 into cockpit-project:main Nov 14, 2024
84 of 85 checks passed
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