@@ -1013,25 +1013,20 @@ export class Collection {
10131013 * @param options - Optional settings for the command
10141014 * @param callback - An optional callback, a Promise will be returned if none is provided
10151015 */
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 ;
10211022 distinct (
10221023 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 {
10331028 if ( typeof query === 'function' ) {
1034- ( callback = query as Callback < Document [ ] > ) , ( query = { } ) , ( options = { } ) ;
1029+ ( callback = query as Callback < any [ ] > ) , ( query = { } ) , ( options = { } ) ;
10351030 } else {
10361031 if ( arguments . length === 3 && typeof options === 'function' ) {
10371032 ( callback = options ) , ( options = { } ) ;
0 commit comments