Fix callback types for SObject cached calls

This commit is contained in:
Abraham White
2018-08-09 12:17:09 -06:00
parent 6000babd03
commit 5435c92c4e
+2 -2
View File
@@ -30,14 +30,14 @@ export class SObject<T> {
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<ApprovalLayoutInfo>;
bulkload(operation: string, options?: { extIdField?: string }, input?: Array<Record<T>> | 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<CompactLayoutInfo>;