There is absolutely no have to utilize a return assertion since the compiler can infer that you might want to return the result of the expression This appears to be just like this situation: Untrue "Property would not exist on kind 'hardly ever'" when modifying benefit within callback with strictNullChecks, https://centralparksector104.co.in/