Understanding "not assignable to parameter of type never" in TypeScript | CodeTrail