juhort

Results 6 comments of juhort

@Daimona Curious what your workflow is? I'm guessing you've `js` files with `JSDoc` comments and you're using TS to check the `JSDoc` comments. AFAIU, the `require-return*` rules don't check if...

@Benjamin-Dobell > The homomorphism isn't useful for arrays I'd say it's very useful for arrays, I'd almost always want the structure, optional and rest elements to be preserved. ```ts type...

@Benjamin-Dobell There are errors in your example. 1. `type StringNodeTuple = string | StringNodeTuple[];` should be `type StringNodeTuple = string | [StringNodeTuple];` 2. `type T2 = DeepReadonly;` should be `type...

> I was using the type you gave in your initial post. Although, I'm not sure practically what you're trying to achieve. My bad, I fixed it, it should be...

@Benjamin-Dobell And the `DataStructure` in your example is a recursive object, for recursive objects _just_ simply having a homomorphic mapped type works (refer example below). It's _only_ in the case...

@Benjamin-Dobell Yeah, you can add a depth check, but if the mapped type works for objects, it should work for arrays as well. Let's wait for somebody from the team...