Skip to content

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