There isn't a really need to use a return statement since the compiler can infer that you want to return the results of the expression This is apparently just like this concern: Phony "Property would not exist on kind 'hardly ever'" when altering benefit inside callback with strictNullChecks, and that https://smartworldeveloper.in/