Re:What the heck are reverse mapped types?
by mrkeen on Sunday August 18, 2024 @04:13AM
(#41280933)
OK so what would you call them? TypeParam1, TypeParam2, ... ?
[ Parent
| on HN ]
Re:What the heck are reverse mapped types?
by code_biologist on Sunday August 18, 2024 @05:02AM
(#41281116)
A common convention I've seen is using T at the start of a type parameter, [1] for example. TKey, TData, TError, TSuccessCallback, etc. I always liked T at the end, but I've not seen that as often.
[1] https://github.com/TanStack/query/blob/59a6d3df3035d6effeaed...
Re:What the heck are reverse mapped types?
by toastedwedge on Sunday August 18, 2024 @10:47AM
(#41282695)
Seems apt that the error for a generic type would (and should) be spelled "terror."