Skip to content

Commit

Permalink
Solves  type error on option
Browse files Browse the repository at this point in the history
Closes #12100
  • Loading branch information
lpizzinidev committed Jul 13, 2022
1 parent db1ba6e commit a12ccf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/indexes.d.ts
Expand Up @@ -51,8 +51,8 @@ declare module 'mongoose' {
* the model's schema except the `_id` index, and build any indexes that
* are in your schema but not in MongoDB.
*/
syncIndexes(options: mongodb.CreateIndexesOptions | null, callback: Callback<Array<string>>): void;
syncIndexes(options?: mongodb.CreateIndexesOptions): Promise<Array<string>>;
syncIndexes(options: SyncIndexesOptions | null, callback: Callback<Array<string>>): void;
syncIndexes(options?: SyncIndexesOptions): Promise<Array<string>>;
}

interface IndexesDiff {
Expand Down

0 comments on commit a12ccf3

Please sign in to comment.