Pelle Wessman
Pelle Wessman
I did one minor addition when I used this in some code now: I wrapped the result in `NonNullable`, as else, when at least all keys were optional, a `undefined`...
> Should it also support array like in https://gist.github.com/ClickerMonkey/a081b990b9b14215141fb6248cef4dc4#file-types-ts-L49-L54 ? If there are no downsides from it, then I think it makes sense 👍 Though maybe await a use case...
Since this style of `JsonObject` has been out for so long, I think we should maybe split it up into two types (names for illustration purposes only) to not break...
There's actually a neat little trick for doing this in TS: ```typescript type Foo = string[]; type Value = Foo[number]; // => string ``` Also works for array literals: ```typescript...
I'll leave it to @sindresorhus to ultimately decide then
Like a `MaybeArray`? ```typescript type MaybeArray = X|Array; ``` Can't remember seeing it somewhere, but I do believe I have created such helpers in some projects.
Right, as `CamelCase` is currently implemented, it: - Splits words separated by `-`, `_` or a white space - It lower cases the first character always - If all characters...
Deprecated + be made into an alias of `Awaited` eventually?
Right, let’s have people manually migrate of it then, just deprecating it
I think the approach you had @ifiokjr was a promising one. Its either that or to extend the `JsonValue` to accept more things, but the latter doesn't sound right. Would...