mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-05 12:20:07 +08:00
Manually specify generic type parameter so return expression types match
This commit is contained in:
1 parent
98cd5ba776
commit
8959bcdc71
2 files changed
+2
-2
No files matched your search
@@ -64,7 +64,7 @@ angular.module('http-auth-interceptor', [])
|
||||
|
||||
function error(response: ng.IHttpPromiseCallbackArg<any>) {
|
||||
if (response.status === 401) {
|
||||
var deferred = $q.defer();
|
||||
var deferred = $q.defer<void>();
|
||||
authServiceProvider.pushToBuffer(response.config, deferred);
|
||||
$rootScope.$broadcast('event:auth-loginRequired');
|
||||
return deferred.promise;
|
||||
|
||||
Reference in new issue
Block a user