From 5435c92c4e3166b261e6043dd6d41887c22867d1 Mon Sep 17 00:00:00 2001 From: Abraham White Date: Thu, 9 Aug 2018 12:17:09 -0600 Subject: [PATCH] Fix callback types for SObject cached calls --- types/jsforce/salesforce-object.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/jsforce/salesforce-object.d.ts b/types/jsforce/salesforce-object.d.ts index 1f5d9fe691..b440f35ffb 100644 --- a/types/jsforce/salesforce-object.d.ts +++ b/types/jsforce/salesforce-object.d.ts @@ -30,14 +30,14 @@ export class SObject { approvalLayouts$: { /** Returns a value from the cache if it exists, otherwise calls SObject.approvalLayouts */ - (callback?: (layoutInfo: ApprovalLayoutInfo) => void): ApprovalLayoutInfo; + (callback?: (err: Error, layoutInfo: ApprovalLayoutInfo) => void): ApprovalLayoutInfo; clear(): void; } approvalLayouts(callback?: (layoutInfo: ApprovalLayoutInfo) => void): Promise; bulkload(operation: string, options?: { extIdField?: string }, input?: Array> | stream.Stream[] | string[], callback?: (err: Error, ret: RecordResult) => void): Batch; compactLayouts$: { /** Returns a value from the cache if it exists, otherwise calls SObject.compactLayouts */ - (callback?: CompactLayoutInfo): CompactLayoutInfo; + (callback?: (err: Error, layoutInfo: CompactLayoutInfo) => void): CompactLayoutInfo; clear(): void; } compactLayouts(callback?: CompactLayoutInfo): Promise;