mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-01 00:50:04 +00:00
Merge pull request #19670 from hucjv/fix-findone-return-type
[jsforce] change findOne so that it returns Query<T> instead of void
This commit is contained in:
6
types/jsforce/salesforce-object.d.ts
vendored
6
types/jsforce/salesforce-object.d.ts
vendored
@@ -25,9 +25,9 @@ export class SObject<T> {
|
||||
find<T>(query?: any, fields?: Object | string[] | string, callback?: (err: Error, ret: T[]) => void): Query<T>;
|
||||
find<T>(query?: any, fields?: Object | string[] | string, options?: Object, callback?: (err: Error, ret: T[]) => void): Query<T>;
|
||||
|
||||
findOne<T>(query?: any, callback?: (err: Error, ret: T) => void): void;
|
||||
findOne<T>(query?: any, fields?: Object | string[] | string, callback?: (err: Error, ret: T) => void): void;
|
||||
findOne<T>(query?: any, fields?: Object | string[] | string, options?: Object, callback?: (err: Error, ret: T) => void): void;
|
||||
findOne<T>(query?: any, callback?: (err: Error, ret: T) => void): Query<T>;
|
||||
findOne<T>(query?: any, fields?: Object | string[] | string, callback?: (err: Error, ret: T) => void): Query<T>;
|
||||
findOne<T>(query?: any, fields?: Object | string[] | string, options?: Object, callback?: (err: Error, ret: T) => void): Query<T>;
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user