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

Enable useDefineForClassFields TS flag #7563

Merged
merged 13 commits into from
Feb 5, 2025

Conversation

GytisCepk
Copy link
Contributor

TypeScript recommends setting useDefineForClassFields to true (default value starting ES2022). However, enabling this flag caused several issues. More info: #7474

Additionally, noticed that some TypeScript types are incorrectly defined (e.g. AuxCoordSystem2d.angle is defined as number, but in reality it can be a number, object or undefined). This PR fixes some of these.

@aruniverse
Copy link
Member

@wgoehrig when you get a chance, can you review this PR?

@wgoehrig wgoehrig self-assigned this Jan 22, 2025
Copy link
Contributor

mergify bot commented Jan 22, 2025

This pull request is now in conflicts. Could you fix it @GytisCepk? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

core/backend/src/ViewDefinition.ts Show resolved Hide resolved
core/backend/src/ViewDefinition.ts Show resolved Hide resolved
core/backend/src/Element.ts Outdated Show resolved Hide resolved
@GytisCepk GytisCepk enabled auto-merge (squash) February 5, 2025 14:36
@GytisCepk GytisCepk merged commit 2296632 into master Feb 5, 2025
16 checks passed
@GytisCepk GytisCepk deleted the gytis/enable-useDefineForClassFields-ts-flag branch February 5, 2025 15:08
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.

6 participants