please change to : 
```
$scope['changeLanguage'] = function (key:any) {
```
https://travis-ci.org/borisyankov/DefinitelyTyped/builds/17131038#L150