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

Fix decorator types #8

Merged
merged 3 commits into from
Mar 8, 2024
Merged

Fix decorator types #8

merged 3 commits into from
Mar 8, 2024

Conversation

aedart
Copy link
Owner

@aedart aedart commented Mar 8, 2024

PR resolves various TS1270 and TS1238 issues when applying decorator or decorator result types. Sadly, these do not offer "well-typed" decorators, which seems to be very difficult (if not impossible) for now.

Hopefully, in a future version of TypeScript, decorator functions and return types are offered as "native" types. But, for now these will have to do.

aedart added 3 commits March 8, 2024 12:30
Various TS1270 and TS1238 issues are not resolved. However, this comes at the cost of decorators and result types not being "well-typed". Hopefully TypeScript can soon produce their own version such that these can be replaced.
@aedart aedart added bug Something isn't working enhancement New feature or request labels Mar 8, 2024
@aedart aedart self-assigned this Mar 8, 2024
@aedart aedart merged commit 5c45b00 into main Mar 8, 2024
2 checks passed
@aedart aedart deleted the fix-decorator-types branch March 8, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant