Dani Guardiola
Dani Guardiola
@kr1sp1n https://www.npmjs.com/~daniguardiola :)
@jhnlsn yes, a merge is close. I need to find time. However, the interface will remain the same so don't worry, you can use the current version and this refactored...
@kr1sp1n we should consider adding the `followAllRedirects: true` request option by default, if it makes sense. I didn't do any research in this specific issue, but from my (somewhat limited)...
Noted for v1.0
A simpler solution I found is the following: ```ts type AppendToObject = T & Record; // or alternatively type AppendToObject = T & { [K in U]: V }; ```...
@pragmasoft-ua you could do that only if this test didn't exist: ```ts // @ts-expect-error type error = MyAwaited ``` But because it exists, the requirement for `T` to extend `Promise`...
I added a mini-challenge for fun: creating helpers to extract the block / elements / modifiers. This is what I came up with: ```ts type ExtractBlock = T extends `${infer...
@ghaiklor thanks for the suggestion. Yep, in a real world scenario that's what I'd go with, but since this was a little challenge I just wanted to make the result...
Why not use `${string}` instead of `${any}`? It can't really be anything else, can it?
My initial solution was exactly like this, but I used `T[K] extends object` as the conditional and it didn't work. I wonder why. Is it because functions are a supertype...