mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Added resolve method to angular.IQService.
This commit is contained in:
1 parent
ffceea9dd1
commit
fe917d27e9
2 files changed
+20
-1
No files matched your search
@@ -296,6 +296,17 @@ module TestQ {
|
||||
result = $q.reject('');
|
||||
}
|
||||
|
||||
// $q.resolve
|
||||
{
|
||||
let result: angular.IPromise<void>;
|
||||
result = $q.resolve();
|
||||
}
|
||||
{
|
||||
let result: angular.IPromise<TResult>;
|
||||
result = $q.resolve<TResult>(tResult);
|
||||
result = $q.resolve<TResult>(promiseTResult);
|
||||
}
|
||||
|
||||
// $q.when
|
||||
{
|
||||
let result: angular.IPromise<void>;
|
||||
|
||||
Reference in new issue
Block a user