mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 13:30:28 +00:00
Make onCancel optional
This commit is contained in:
Vendored
+1
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user