fix(TransportRequestPromise): add finally method to TransportRequestP… (#1415)

* fix(TransportRequestPromise): add finally method to TransportRequestPromise interface

* fix(TransportRequestPromise): add finally method to transportReturn object

* fix(TransportRequestPromise): add finally method tests
This commit is contained in:
Yahia Kerim
2021-03-22 11:50:15 +01:00
committed by delvedor
parent 528b90d19a
commit 416b221b1e
3 changed files with 31 additions and 0 deletions

1
lib/Transport.d.ts vendored
View File

@ -120,6 +120,7 @@ export interface TransportRequestCallback {
export interface TransportRequestPromise<T> extends Promise<T> {
abort: () => void;
finally(onFinally?: (() => void) | undefined | null): Promise<T>;
}
export interface TransportGetConnectionOptions {