There is no need to use a return assertion since the compiler can infer that you would like to return the results of the expression This seems to be just like this issue: Bogus "Property does not exist on kind 'hardly ever'" when shifting worth inside of callback with strictNullChecks, https://smartworlddeveloper.co.in/