Return promise with 'any' type

This commit is contained in:
Kamil Ejsymont
2017-07-07 12:50:27 +02:00
parent 411f20e3f5
commit 14602bb57b

View File

@@ -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>;