Issue with `Schema.optionalWith` Producing `string | undefined` Instead of `string`

Hey folks!
Schema.optionalWith(Schema.String, { exact: true }),


Does anyone know why it produces (property) organizationId?: string | undefined ?

My target prop expects (property) organizationId?: string so I'm trying to adjust the req Effect schema accordingly. No success so far..
Was this page helpful?