Skip to content

Commit

Permalink
feat(typings): improve vow namespace #163 (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddubrava committed Feb 24, 2022
1 parent cad8f5f commit 029dae9
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions projects/angular8-yandex-maps/src/lib/typings/yandex-maps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4875,15 +4875,15 @@ declare namespace ymaps {

namespace vow {
class Deferred {
promise(): Promise;
promise(): vow.Promise;

reject(reason: object): void;
reject(reason: any): void;

resolve(value: object): void;
resolve(value: any): void;
}

class Promise {
constructor(resolver?: () => void);
constructor(resolver?: (resolve?: any, reject?: any) => void);

done(
onFulfilled?: (...args: any[]) => void,
Expand All @@ -4896,19 +4896,25 @@ declare namespace ymaps {
onFulfilled?: (...args: any[]) => void,
onRejected?: (err?: Error | any) => void,
ctx?: object,
): Promise;
): vow.Promise;

then(
onFulfilled?: (...args: any[]) => void,
onRejected?: (err?: Error | any) => void,
onProgress?: (...args: any[]) => void,
ctx?: object,
): Promise;
): vow.Promise;

valueOf(): object;
}

function resolve(value: any): any;
function all(iterable: any): vow.Promise;

function defer(): vow.Deferred;

function reject(reason: any): vow.Promise;

function resolve(value: any): vow.Promise;
}

/* Interfaces */
Expand Down

0 comments on commit 029dae9

Please sign in to comment.