Skip to content

Commit

Permalink
Merge pull request #15134 from Automattic/vkarpov15/schema-removeindex
Browse files Browse the repository at this point in the history
types(schema): add missing removeIndex
  • Loading branch information
vkarpov15 authored Dec 30, 2024
2 parents 4081e5c + 314562f commit 494df86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ declare module 'mongoose' {
remove(paths: string | Array<string>): this;

/** Removes index by name or index spec */
remove(index: string | AnyObject): this;
removeIndex(index: string | AnyObject): this;

/** Returns an Array of path strings that are required by this schema. */
requiredPaths(invalidate?: boolean): string[];
Expand Down

0 comments on commit 494df86

Please sign in to comment.