There is no ought to use a return assertion since the compiler can infer you want to return the results of the expression This is apparently comparable to this difficulty: Phony "Property would not exist on type 'by no means'" when transforming benefit inside callback with strictNullChecks, that's shut as https://luxuryprojectsgurugram.in/