There's no need to make use of a return assertion as the compiler can infer that you might want to return the results of the expression This seems to be just like this issue: False "Property isn't going to exist on kind 'never'" when shifting benefit within callback with strictNullChecks, https://smartworlddeveloper.co.in/