Currently, Label is tagged with an _optionValue property by the SelectInput property. This is messy from an architectural standpoint, and the _optionValue property even appears in the API docs. This PR refactors the code to no longer require this tagging.
Also:
Improves typing for SelectInputArgs#options
Tweaks naming for Map-like objects to make them consistent with the new _labelToValue class property. These objects should probably also be Maps but this PR does not make that change.
Currently,
Label
is tagged with an_optionValue
property by theSelectInput
property. This is messy from an architectural standpoint, and the_optionValue
property even appears in the API docs. This PR refactors the code to no longer require this tagging.Also:
SelectInputArgs#options
_labelToValue
class property. These objects should probably also be Maps but this PR does not make that change.forEach
calls tofor..of
loops