@@ -1013,25 +1013,20 @@ export class Collection {
1013
1013
* @param options - Optional settings for the command
1014
1014
* @param callback - An optional callback, a Promise will be returned if none is provided
1015
1015
*/
1016
- distinct ( key : string ) : Promise < Document [ ] > ;
1017
- distinct ( key : string , callback : Callback < Document [ ] > ) : void ;
1018
- distinct ( key : string , query : Document ) : Promise < Document [ ] > ;
1019
- distinct ( key : string , query : Document , callback : Callback < Document [ ] > ) : void ;
1020
- distinct ( key : string , query : Document , options : DistinctOptions ) : Promise < Document [ ] > ;
1016
+ distinct ( key : string ) : Promise < any [ ] > ;
1017
+ distinct ( key : string , callback : Callback < any [ ] > ) : void ;
1018
+ distinct ( key : string , query : Document ) : Promise < any [ ] > ;
1019
+ distinct ( key : string , query : Document , callback : Callback < any [ ] > ) : void ;
1020
+ distinct ( key : string , query : Document , options : DistinctOptions ) : Promise < any [ ] > ;
1021
+ distinct ( key : string , query : Document , options : DistinctOptions , callback : Callback < any [ ] > ) : void ;
1021
1022
distinct (
1022
1023
key : string ,
1023
- query : Document ,
1024
- options : DistinctOptions ,
1025
- callback : Callback < Document [ ] >
1026
- ) : void ;
1027
- distinct (
1028
- key : string ,
1029
- query ?: Document | DistinctOptions | Callback < Document [ ] > ,
1030
- options ?: DistinctOptions | Callback < Document [ ] > ,
1031
- callback ?: Callback < Document [ ] >
1032
- ) : Promise < Document [ ] > | void {
1024
+ query ?: Document | DistinctOptions | Callback < any [ ] > ,
1025
+ options ?: DistinctOptions | Callback < any [ ] > ,
1026
+ callback ?: Callback < any [ ] >
1027
+ ) : Promise < any [ ] > | void {
1033
1028
if ( typeof query === 'function' ) {
1034
- ( callback = query as Callback < Document [ ] > ) , ( query = { } ) , ( options = { } ) ;
1029
+ ( callback = query as Callback < any [ ] > ) , ( query = { } ) , ( options = { } ) ;
1035
1030
} else {
1036
1031
if ( arguments . length === 3 && typeof options === 'function' ) {
1037
1032
( callback = options ) , ( options = { } ) ;
0 commit comments