TypeScript Error When Using `Array.max` with Non-Empty Arrays in Effect-TS
I am trying to find max value in a give array. I am using https://effect-ts.github.io/effect/effect/Array.ts.html#max to achieve that.
Below is the code I have written
I am getting below typescript error
Not sure how to elegantly solve this problem.
I have asked this question in stackoverflow as well(Small effort to make make Effect more SEO friendly) - https://stackoverflow.com/questions/79596213/how-to-deal-with-nonemptyreadonlyarray-type-in-effect-ts
Below is the code I have written
I am getting below typescript error
Not sure how to elegantly solve this problem.
I have asked this question in stackoverflow as well(Small effort to make make Effect more SEO friendly) - https://stackoverflow.com/questions/79596213/how-to-deal-with-nonemptyreadonlyarray-type-in-effect-ts
