3 ms·
> I always wanna do something like Object.keys(typedObjName).map(...) but that doesn't work. Is this a type space/value space thing? Like Object.keys(...) is a
by badlucklottery 4y ago
> I always wanna do something like Object.keys(typedObjName).map(...) but that doesn't work.
Is this a type space/value space thing? Like Object.keys(...) is always a string[] instead of Array<keyof TypedObj> like you might expect?
- ryanmcbride 4y agopossibly but the error (that I can't seem to get anymore) was always saying something about TypedObj missing an iterator, making Object.keys() unable to parse it. But I'm not getting that anymore so I have no idea what's going on. Like I said it's just a minor thing that's popped up a few times so I guess I'll just have to wait until it pops up again to know for sure what's up.