Matías Hernández Arellano

Results 12 comments of Matías Hernández Arellano

My take was this one to avoid the strings ``` type Length = T extends readonly any[] ? T['length'] : never ``` After that I notice that the constraint can...

Maybe is more verbose but also works ``` type Push = T extends unknown[] ? [...T, U] : never ```

I solved it by using the utility type `Parameters`, that is in fact same as `Fn extends (...args: infer P) => infer R` ``` type AppendArgument = Fn extends (...args:any)...

Clojure from the Ground Up - [x] Chapters 1-3 (Day 1,2,4,5) - [x] Chapters 4, 6 (Day 6,7,8,12) - [ ] Chapters 7, 8, 10 4Clojure - [ ] 20...

The problem is that when i calll "close()", the method remove 2 views from the collection/parent and not just one. I tri to fix...

I think eslint rules can help you with first 4 items there..

So.. for the component this will be exposed just as `useConfigOptions()` hook? Sounds like a good way

Bumping this thread once more since I'm in the same situation. I can get the markdown to HTML but without the imported components (inside the markdown) working as expected. I...

Isn’t fetch available on node, browser and edge runtimes now? That means that i can get rid of isomorphic-fetch

Looking into [cloudinary-util](https://github.com/colbyfayock/cloudinary-util/blob/main/packages/util/src/lib/cloudinary.ts#LL3C1-L4C1) code this Regex written by Colby Fayock works ``` const REGEX_URL = /https?:\/\/(?[^\/]+)\/(?[^\/]+)\/(?image|images|video|videos|raw|files)\/(?upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)?\/?(?s\-\-[a-zA-Z0-9]+\-\-)?\/?(?(?:[^_\/]+_[^,\/]+,?\/?)*\/)*(?v\d+|\w{1,2})\/(?[^\s]+)$/; ``` the caveat with Colby's approach is it requires a version number - otherwise...