Posts by Renato Rodrigues • 13 points
1 post
-
0
votes1
answer104
viewsQ: Using a prop of an object as a key on another object in TS
I’m trying to export an object with my valid types and create a type based on that. So far so good, the problem is the interface that expects a string but is not accepting the object prop (which is…