There's no should use a return statement as the compiler can infer that you want to return the result of the expression This appears to be similar to this difficulty: False "Property isn't going to exist on variety 'under no circumstances'" when shifting value inside callback with strictNullChecks, that's shut https://trehan-floors.in/