fix typings for chatter and metadata for finally

This commit is contained in:
Abhi Aiyer
2018-12-05 11:36:54 -08:00
parent bf7d121e74
commit 33ace784b8
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -41,6 +41,8 @@ export class Request<T> implements Promise<T> {
then<TResult1, TResult2>(onfulfilled?: ((value: T) => (PromiseLike<TResult1> | TResult1)) | null | undefined,
onrejected?: ((reason: any) => (PromiseLike<TResult2> | TResult2)) | null | undefined): Promise<TResult1 | TResult2>;
finally(onfinally?: () => void): Promise<T>
thenCall(callback?: (err: Error, records: T) => void): Query<T>;
readonly [Symbol.toStringTag]: 'Promise';
+2
View File
@@ -124,6 +124,8 @@ export class AsyncResultLocator<T> extends EventEmitter implements Promise<T> {
then<TResult1, TResult2>(onfulfilled?: ((value: T) => (PromiseLike<TResult1> | TResult1)) | null | undefined,
onrejected?: ((reason: any) => (PromiseLike<TResult2> | TResult2)) | null | undefined): Promise<TResult1 | TResult2>;
finally(onfinally?: () => void): Promise<T>
readonly [Symbol.toStringTag]: "Promise";
}