mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Return promise with 'any' type
This commit is contained in:
2
types/jsforce/query.d.ts
vendored
2
types/jsforce/query.d.ts
vendored
@@ -24,7 +24,7 @@ export class Query<T> {
|
||||
delete(callback?: (err: Error, ret: RecordResult) => void): any;
|
||||
destroy(callback?: (err: Error, ret: RecordResult) => void): Promise<RecordResult[]>;
|
||||
explain(callback?: (err: Error, info: ExplainInfo) => void): Promise<ExplainInfo>;
|
||||
map(callback: (currentValue: Object) => void): Promise<Object>;
|
||||
map(callback: (currentValue: Object) => void): Promise<any>;
|
||||
scanAll(value: boolean): Query<T>;
|
||||
select(fields: Object | string[] | string): Query<T>;
|
||||
then(onSuccess?: Function, onRejected?: Function): Promise<any>;
|
||||
|
||||
Reference in New Issue
Block a user