mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 12:42:58 +08:00
Make onCancel optional
This commit is contained in:
2
bluebird/bluebird.d.ts
vendored
2
bluebird/bluebird.d.ts
vendored
@@ -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