add finally implement to comply promise implementation

This commit is contained in:
Ylies Chahi
2018-03-19 14:37:03 +01:00
parent 9f4c751261
commit 41f7055984
+1
View File
@@ -49,6 +49,7 @@ export class Query<T> extends Readable implements Promise<T> {
// Implementing promise methods
then<T, never>(onfulfilled?: any): Promise<T | never>;
catch<never>(onrejected?: any): Promise<T>;
finally<never>(): Promise<T>;
[Symbol.toStringTag]: "Promise";
}