Posts by AyAyEm • 31 points
1 post
-
3
votes1
answer32
viewsA: How to put typing in the return of Object.Keys being the types the Keys of the Object or the interface?
In this case the compiler of typescript cannot infer whether the types are the same, since a union of different types has no order, the solution is to leave some of the typing aside in this case.…