From bd9ef16dc64641c01241e2800959d10e40b3fc2b Mon Sep 17 00:00:00 2001 From: Abraham White Date: Thu, 9 Aug 2018 12:00:34 -0600 Subject: [PATCH] Fix return types for SObject.delete --- types/jsforce/salesforce-object.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/jsforce/salesforce-object.d.ts b/types/jsforce/salesforce-object.d.ts index ab3e398891..1c79b367eb 100644 --- a/types/jsforce/salesforce-object.d.ts +++ b/types/jsforce/salesforce-object.d.ts @@ -43,9 +43,9 @@ export class SObject { count(conditions?: Object | string, callback?: (err: Error, num: number) => void): Promise; create(options: any | any[], callback?: (err: Error, ret: RecordResult | RecordResult[]) => void): Promise; createBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; - del(ids: string | string[], callback?: (err: Error, ret: any) => void): void; - destroy(ids: string | string[], callback?: (err: Error, ret: any) => void): void; - delete(ids: string | string[], callback?: (err: Error, ret: any) => void): void; + del(ids: string | string[], callback?: (err: Error, ret: any) => void): Promise; + destroy(ids: string | string[], callback?: (err: Error, ret: any) => void): Promise; + delete(ids: string | string[], callback?: (err: Error, ret: any) => void): Promise; deleteBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; destroyBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch; destroyHardBulk(input?: Array> | stream.Stream | string, callback?: (err: Error, ret: RecordResult) => void): Batch;