@@ -14,7 +14,7 @@ angular.module('http-auth-interceptor', [])
14
14
* Holds all the requests which failed due to 401 response,
15
15
* so they can be re-requested in future, once login is completed.
16
16
*/
17
- var buffer = [ ] ;
17
+ var buffer : { config : ng . IRequestConfig ; deferred : ng . IDeferred < any > ; } [ ] = [ ] ;
18
18
19
19
/**
20
20
* Required by HTTP interceptor.
@@ -55,7 +55,7 @@ angular.module('http-auth-interceptor', [])
55
55
* $http interceptor.
56
56
* On 401 response - it stores the request and broadcasts 'event:angular-auth-loginRequired'.
57
57
*/
58
- . config ( [ '$httpProvider' , 'authServiceProvider' , < any > function ( $httpProvider : ng . IHttpProvider , authServiceProvider ) {
58
+ . config ( [ '$httpProvider' , 'authServiceProvider' , < any > function ( $httpProvider : ng . IHttpProvider , authServiceProvider : any ) {
59
59
60
60
var interceptor = [ '$rootScope' , '$q' , < any > function ( $rootScope : ng . IScope , $q : ng . IQService ) {
61
61
function success ( response : ng . IHttpPromiseCallbackArg < any > ) {
@@ -145,14 +145,14 @@ module HttpAndRegularPromiseTests {
145
145
. success ( callback ) ;
146
146
}
147
147
148
- doFoo ( ( data ) => console . log ( data ) ) ;
148
+ doFoo ( ( data : any ) => console . log ( data ) ) ;
149
149
}
150
150
}
151
151
152
152
// Test for AngularJS Syntax
153
153
154
154
module My . Namespace {
155
- export var x ; // need to export something for module to kick in
155
+ export var x : any ; // need to export something for module to kick in
156
156
}
157
157
158
158
// IModule Registering Test
0 commit comments