Now that a converter defines what kind of error types it can throw, the conversionError data structure (if it's an object) should actually be typechecked somehow - it makes no sense to define conversion errors that don't exist, and the IDE would help you show that conversion errors exist. It might also make sense to move the conversionError structure into the converter options itself.
Now that a converter defines what kind of error types it can throw, the conversionError data structure (if it's an object) should actually be typechecked somehow - it makes no sense to define conversion errors that don't exist, and the IDE would help you show that conversion errors exist. It might also make sense to move the conversionError structure into the converter options itself.