Resolving Type Issues in Schema without Assertions

I'd like to know if there's a way to solve this type issue with schema without relying on assertions. There are 2 issues there, the schema being used in Schema.decodeUnknown which gives a type error and the overall effect/function trying to produce the correct return type.

https://effect.website/play#e682e98a07e0
image.png
Was this page helpful?