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

feat: propose generic then method solution for passing-type-arguments 11 #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MatchuPitchu
Copy link

@MatchuPitchu MatchuPitchu commented Oct 2, 2023

It is possible to enter a generic type argument for the then function. This seems more intuitive to me than typing data. But in this way, the const data is infered as Awaited<TData>. In this context, this construction is working, but I realize that it is not directly the same as TData.

@MatchuPitchu MatchuPitchu changed the title feat: propose generic then method solution for passing-type-arguments 11 feat: propose generic then method solution for passing-type-arguments 11 Oct 2, 2023
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.

1 participant