Any typescript chads able know if it's possible to map a type to another type w generics
Not 100% sure if this is appropriate to ask here but I figured there's a lot of good TS developers on this discord.. let me know if I should remove.
Is it possible to use inference to somehow map one object type to another type generically? I know we can do it w/ strings but what about full objects?
IE
Doesn't have to look exactly like this but just the idea of "Given this type that can be anything type the output as some other type that associated with it"
Is it possible to use inference to somehow map one object type to another type generically? I know we can do it w/ strings but what about full objects?
IE
Doesn't have to look exactly like this but just the idea of "Given this type that can be anything type the output as some other type that associated with it"
