mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #6049 from marcogrcr/add-qservice-when-method
Added resolve method to angular.IQService.
This commit is contained in:
@@ -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