mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
alert promise changed to promise<void>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user