Because pluggables add a layer of indirection, Flow has trouble inferring the argument and function types of the compilation functions. One option would be to introduce a babel plugin that transforms normal functions into pluggable functions, given some sort of annotation. This would add a lot of magic, however, which is a significant downside.
Going to table this for now and revisit if something changes.
Because
pluggables
add a layer of indirection, Flow has trouble inferring the argument and function types of the compilation functions. One option would be to introduce a babel plugin that transforms normal functions intopluggable
functions, given some sort of annotation. This would add a lot of magic, however, which is a significant downside.Going to table this for now and revisit if something changes.