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

Partial TypeScript conversion #463

Merged
merged 25 commits into from
Feb 2, 2024
Merged

Partial TypeScript conversion #463

merged 25 commits into from
Feb 2, 2024

Conversation

Windvis
Copy link
Contributor

@Windvis Windvis commented Feb 1, 2024

This is a partial conversion to .gts / .ts. Converting everything at once is time consuming, and splitting it up also means we won't have merge conflicts in the future.

#425

@Windvis Windvis force-pushed the feat/glint-typescript-support branch from 6e3b0aa to 3e73a53 Compare February 1, 2024 14:52
Base automatically changed from feat/glint-typescript-support to master February 1, 2024 17:33
@Windvis Windvis force-pushed the chore/ts-conversion branch 2 times, most recently from 0b63488 to a34360c Compare February 2, 2024 09:03
@Windvis Windvis changed the title .gts / .ts conversion Partial .gts / .ts conversion Feb 2, 2024
@Windvis Windvis changed the title Partial .gts / .ts conversion Partial TypeScript conversion Feb 2, 2024
@Windvis Windvis added the internal Used for internal changes that still require a mention in the changelog/release notes. label Feb 2, 2024
@Windvis Windvis force-pushed the chore/ts-conversion branch from a34360c to 21ac883 Compare February 2, 2024 11:24
…files

This has some benefits (at the cost of slightly worse performance):
- more readable
- easy to add state, without refactoring to a Glimmer component
- it sidesteps one of the "reference comment" bugs in Glint / TS
This adds types to the helper and converts it to a regular function since we dropped Ember <4.12 support.
v4 has official TS support, but some of our dependencies still use v3. This adds temporary types to make Glint happy. We can remove them once all our dependencies support v4, or by removing the usage in our own code.
@Windvis Windvis force-pushed the chore/ts-conversion branch from 21ac883 to 6511ee8 Compare February 2, 2024 15:03
@Windvis Windvis force-pushed the chore/ts-conversion branch from 6511ee8 to 6eee009 Compare February 2, 2024 15:06
@Windvis Windvis marked this pull request as ready for review February 2, 2024 15:06
@Windvis Windvis merged commit 9ef3e00 into master Feb 2, 2024
8 checks passed
@Windvis Windvis deleted the chore/ts-conversion branch February 2, 2024 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Used for internal changes that still require a mention in the changelog/release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant