alert promise changed to promise<void>

This commit is contained in:
Vladimir Enchev
2014-06-04 08:09:36 +03:00
parent 5095c5a5a7
commit c419fbdba4
3 changed files with 6 additions and 6 deletions

View File

@@ -29,8 +29,8 @@ function createDelegate(callback) {
return new delegateType;
}
export function alert(arg: any): promises.Promise<any> {
var d = promises.defer<any>();
export function alert(arg: any): promises.Promise<void> {
var d = promises.defer<void>();
try {
var options = typeof arg === STRING ? { message: arg, title: ALERT, buttonName: OK } : arg