Make onCancel optional

This commit is contained in:
Juan Luis Boya García
2016-07-01 04:33:56 +02:00
parent 7b1934fc90
commit 3df971db33

View File

@@ -34,7 +34,7 @@ interface PromiseConstructor {
new <T>(callback: (
resolve: (thenableOrResult?: T | PromiseLike<T>) => void,
reject: (error: any) => void,
onCancel: PromiseCancelHandlerSetter
onCancel?: PromiseCancelHandlerSetter
) => void): Promise<T>;
config(options: {