typescript-generics-workshop
typescript-generics-workshop copied to clipboard
feat: propose generic then method solution for passing-type-arguments `11`
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
.