There is no need to use a return assertion as the compiler can infer you want to return the result of the expression This is apparently much like this challenge: Wrong "Property isn't going to exist on variety 'never'" when changing worth within callback with strictNullChecks, which is closed as https://whitelandgurugram.co.in/