Merge pull request #31105 from abhiaiyer91/jsforce

Fix typings for jsforce: chatter and metadata
This commit is contained in:
Andrew Casey
2018-12-05 15:45:58 -08:00
committed by GitHub
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";
}