typescript-generics-workshop icon indicating copy to clipboard operation
typescript-generics-workshop copied to clipboard

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

Open MatchuPitchu opened this issue 1 year ago • 0 comments

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 avatar Oct 02 '23 11:10 MatchuPitchu