Caleb Cushing
Caleb Cushing
@Beraliv would it be possible to add a generic type of `ArrayToObjectType`? or something?
as this code that I wrote is black magic to me, and I don't yet understand it. Also, doesn't seem like a bad use case for this library.
@Beraliv should the type here be changed to enhancement?
Although that compiles, autocompletion in the IDE isn't working, you should be able to do `response.` ctrl+space and have it suggest `a` or `b` given my original.
but yes, if doing that was as simple as that I would say it's not needed, just doesn't seem to do *everything* I'm trying to do ;)
well, we can open another one, but the thing I like (and I know some tsessentials stuff says this) is that ```ts type ToObject = T extends infer Key ?...
looks like not quite the latest ``` > yarn info typescript # services -> feature/RS2-1286 $ — ! ? RC=141 └─ typescript@patch:typescript@npm%3A4.0.2#builtin::version=4.0.2&hash=5bf698 ├─ Version: 4.0.2 │ └─ Exported Binaries ├─...
> @xenoterracide Hello! Please make an effort to create a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) in the future. sorry about that, I'd hoped my pasted code would be enough.
well, perhaps I should not say the exact original type, but because the type changed to just a shape it no longer matched the class type for typescript, even though...
ok, makes sense, just off the cuff those seemed like they should do the same last night. But after some sleep, you're right.