Effect CommunityEC
Effect Community2y ago
3 replies
fil0

Issues with `exact` option in `Schema.partial`

Hi, I'm having issues with the exact option when using
partial
. Could someone please confirm it's not a bug? I was on 0.66.12, but experiencing the same after upgrading to 0.67.13.
Here is the code from the manual:
/*
Schema.Schema<{
    readonly a?: string;
}, {
    readonly a?: string;
}, never>
*/
const exactSchema = Schema.partial(Schema.Struct({ a: Schema.String }), {
  exact: true
})

This is what I'm getting:
image.png
Was this page helpful?