Factory function to create an OptionConfig object with strong typing.
OptionConfig
The config for the option.
Factory function to create an
OptionConfig
object with strong typing.