There isn't a need to utilize a return statement as the compiler can infer that you want to return the results of the expression This seems to be similar to this problem: Untrue "Property doesn't exist on sort 'never ever'" when modifying value inside of callback with strictNullChecks, which happens https://emperiumgurugram.in/