There isn't a need to use a return statement because the compiler can infer that you'd like to return the result of the expression This seems to be much like this concern: Fake "Property will not exist on type 'hardly ever'" when shifting price inside callback with strictNullChecks, which happens https://emperiumgurugram.in/