Issues with Branded Types and Optional Options in Effect Typescript Library
I might have found a few bugs with Options. The first thing is with branded types. I want to use
If I move the
passing no Option to the CLI is not
an empty array. I'd expect an empty array when an option is actually set but with no value.
Am I missing something?
Options.text and brand it. Like this:error: InvalidArgumentException: only single options can be variadicIf I move the
Options.withSchema after the Options.repeated and turn it into an Array like this:passing no Option to the CLI is not
Option.none as I'd expect butan empty array. I'd expect an empty array when an option is actually set but with no value.
Am I missing something?
