Question about usage of Predicate.struct with optional properties
Hi I'm attempting to filter data using
Given the following example, all is well:
But as soon as we add an optional property into the mix, I get a compilation error regarding name being undefined but required in the predicate type:
Is there a way to accomplish what I’m trying to do here? The example is a bit contrived, in reality I’m trying to apply it to a more complex struct.
Effect playground link for convenience:
https://effect.website/play#2d04c5bbafc9
Predicate.struct but running into compilation issues regarding optional properties.Given the following example, all is well:
But as soon as we add an optional property into the mix, I get a compilation error regarding name being undefined but required in the predicate type:
Is there a way to accomplish what I’m trying to do here? The example is a bit contrived, in reality I’m trying to apply it to a more complex struct.
Effect playground link for convenience:
https://effect.website/play#2d04c5bbafc9

